Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Side by Side Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 746993002: Avoid patching in dart2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library elements; 5 library elements;
6 6
7 7
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../tree/tree.dart'; 9 import '../tree/tree.dart';
10 import '../util/util.dart'; 10 import '../util/util.dart';
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 /// 394 ///
395 /// See [:patch_parser.dart:] for a description of the terminology. 395 /// See [:patch_parser.dart:] for a description of the terminology.
396 Element get patch; 396 Element get patch;
397 397
398 /// Returns the origin for this element if this element is a patch. 398 /// Returns the origin for this element if this element is a patch.
399 /// 399 ///
400 /// See [:patch_parser.dart:] for a description of the terminology. 400 /// See [:patch_parser.dart:] for a description of the terminology.
401 Element get origin; 401 Element get origin;
402 402
403 bool get isSynthesized; 403 bool get isSynthesized;
404 bool get isForwardingConstructor;
405 bool get isMixinApplication; 404 bool get isMixinApplication;
406 405
407 bool get hasFixedBackendName; 406 bool get hasFixedBackendName;
408 String get fixedBackendName; 407 String get fixedBackendName;
409 408
410 bool get isAbstract; 409 bool get isAbstract;
411 bool isForeign(Backend backend); 410 bool isForeign(Backend backend);
412 411
413 void addMetadata(MetadataAnnotation annotation); 412 void addMetadata(MetadataAnnotation annotation);
414 void setNative(String name); 413 void setNative(String name);
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 // TODO(johnniwinther): Rename to `ensureFunctionSignature`. 1132 // TODO(johnniwinther): Rename to `ensureFunctionSignature`.
1134 @deprecated FunctionSignature computeSignature(Compiler compiler); 1133 @deprecated FunctionSignature computeSignature(Compiler compiler);
1135 1134
1136 bool get hasFunctionSignature; 1135 bool get hasFunctionSignature;
1137 1136
1138 /// The type of this function. 1137 /// The type of this function.
1139 FunctionType get type; 1138 FunctionType get type;
1140 1139
1141 /// The synchronous/asynchronous marker on this function. 1140 /// The synchronous/asynchronous marker on this function.
1142 AsyncMarker get asyncMarker; 1141 AsyncMarker get asyncMarker;
1142
1143 /// `true` if this function is external.
1144 bool get isExternal;
1143 } 1145 }
1144 1146
1145 /// Enum for the synchronous/asynchronous function body modifiers. 1147 /// Enum for the synchronous/asynchronous function body modifiers.
1146 class AsyncMarker { 1148 class AsyncMarker {
1147 /// The default function body marker. 1149 /// The default function body marker.
1148 static AsyncMarker SYNC = const AsyncMarker._(); 1150 static AsyncMarker SYNC = const AsyncMarker._();
1149 1151
1150 /// The `sync*` function body marker. 1152 /// The `sync*` function body marker.
1151 static AsyncMarker SYNC_STAR = const AsyncMarker._(isYielding: true); 1153 static AsyncMarker SYNC_STAR = const AsyncMarker._(isYielding: true);
1152 1154
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 bool get isDeclaredByField; 1614 bool get isDeclaredByField;
1613 1615
1614 /// Returns `true` if this member is abstract. 1616 /// Returns `true` if this member is abstract.
1615 bool get isAbstract; 1617 bool get isAbstract;
1616 1618
1617 /// If abstract, [implementation] points to the overridden concrete member, 1619 /// If abstract, [implementation] points to the overridden concrete member,
1618 /// if any. Otherwise [implementation] points to the member itself. 1620 /// if any. Otherwise [implementation] points to the member itself.
1619 Member get implementation; 1621 Member get implementation;
1620 } 1622 }
1621 1623
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698