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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 226953003: Revert "Compute frontend/backend specific constants." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months 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 '../tree/tree.dart'; 8 import '../tree/tree.dart';
9 import '../util/util.dart'; 9 import '../util/util.dart';
10 import '../resolution/resolution.dart'; 10 import '../resolution/resolution.dart';
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 abstract class TypeVariableElement extends Element implements TypedElement { 1033 abstract class TypeVariableElement extends Element implements TypedElement {
1034 /// The [type] defined by the type variable. 1034 /// The [type] defined by the type variable.
1035 TypeVariableType get type; 1035 TypeVariableType get type;
1036 1036
1037 /// The upper bound on the type variable. If not explicitly declared, this is 1037 /// The upper bound on the type variable. If not explicitly declared, this is
1038 /// `Object`. 1038 /// `Object`.
1039 DartType get bound; 1039 DartType get bound;
1040 } 1040 }
1041 1041
1042 abstract class MetadataAnnotation implements Spannable { 1042 abstract class MetadataAnnotation implements Spannable {
1043 /// The front-end constant of this metadata annotation.
1044 Constant get value; 1043 Constant get value;
1045 Element get annotatedElement; 1044 Element get annotatedElement;
1046 int get resolutionState; 1045 int get resolutionState;
1047 Token get beginToken; 1046 Token get beginToken;
1048 Token get endToken; 1047 Token get endToken;
1049 1048
1050 // TODO(kasperl): Try to get rid of these. 1049 // TODO(kasperl): Try to get rid of these.
1051 void set annotatedElement(Element value); 1050 void set annotatedElement(Element value);
1051 void set resolutionState(int value);
1052 1052
1053 MetadataAnnotation ensureResolved(Compiler compiler); 1053 MetadataAnnotation ensureResolved(Compiler compiler);
1054 } 1054 }
1055 1055
1056 abstract class VoidElement extends Element {} 1056 abstract class VoidElement extends Element {}
1057 1057
1058 /// An [Element] that has a type. 1058 /// An [Element] that has a type.
1059 abstract class TypedElement extends Element { 1059 abstract class TypedElement extends Element {
1060 DartType get type; 1060 DartType get type;
1061 } 1061 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 InterfaceType get declarer; 1126 InterfaceType get declarer;
1127 1127
1128 /// Returns `true` if this member is static. 1128 /// Returns `true` if this member is static.
1129 bool get isStatic; 1129 bool get isStatic;
1130 1130
1131 /// Returns `true` if this member is a getter or setter implicitly declared 1131 /// Returns `true` if this member is a getter or setter implicitly declared
1132 /// by a field. 1132 /// by a field.
1133 bool get isDeclaredByField; 1133 bool get isDeclaredByField;
1134 } 1134 }
1135 1135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698