| OLD | NEW |
| 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 '../cps_ir/const_expression.dart'; |
| 8 import '../tree/tree.dart'; | 9 import '../tree/tree.dart'; |
| 9 import '../util/util.dart'; | 10 import '../util/util.dart'; |
| 10 import '../resolution/resolution.dart'; | 11 import '../resolution/resolution.dart'; |
| 11 | 12 |
| 12 import '../dart2jslib.dart' show InterfaceType, | 13 import '../dart2jslib.dart' show InterfaceType, |
| 13 DartType, | 14 DartType, |
| 14 TypeVariableType, | 15 TypeVariableType, |
| 15 TypedefType, | 16 TypedefType, |
| 16 DualKind, | 17 DualKind, |
| 17 MessageKind, | 18 MessageKind, |
| (...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 /// The [type] defined by the type variable. | 1421 /// The [type] defined by the type variable. |
| 1421 TypeVariableType get type; | 1422 TypeVariableType get type; |
| 1422 | 1423 |
| 1423 /// The upper bound on the type variable. If not explicitly declared, this is | 1424 /// The upper bound on the type variable. If not explicitly declared, this is |
| 1424 /// `Object`. | 1425 /// `Object`. |
| 1425 DartType get bound; | 1426 DartType get bound; |
| 1426 } | 1427 } |
| 1427 | 1428 |
| 1428 abstract class MetadataAnnotation implements Spannable { | 1429 abstract class MetadataAnnotation implements Spannable { |
| 1429 /// The front-end constant of this metadata annotation. | 1430 /// The front-end constant of this metadata annotation. |
| 1430 Constant get value; | 1431 ConstExp get constant; |
| 1431 Element get annotatedElement; | 1432 Element get annotatedElement; |
| 1432 int get resolutionState; | 1433 int get resolutionState; |
| 1433 Token get beginToken; | 1434 Token get beginToken; |
| 1434 Token get endToken; | 1435 Token get endToken; |
| 1435 | 1436 |
| 1436 MetadataAnnotation ensureResolved(Compiler compiler); | 1437 MetadataAnnotation ensureResolved(Compiler compiler); |
| 1437 } | 1438 } |
| 1438 | 1439 |
| 1439 /// An [Element] that has a type. | 1440 /// An [Element] that has a type. |
| 1440 abstract class TypedElement extends Element { | 1441 abstract class TypedElement extends Element { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1558 bool get isDeclaredByField; | 1559 bool get isDeclaredByField; |
| 1559 | 1560 |
| 1560 /// Returns `true` if this member is abstract. | 1561 /// Returns `true` if this member is abstract. |
| 1561 bool get isAbstract; | 1562 bool get isAbstract; |
| 1562 | 1563 |
| 1563 /// If abstract, [implementation] points to the overridden concrete member, | 1564 /// If abstract, [implementation] points to the overridden concrete member, |
| 1564 /// if any. Otherwise [implementation] points to the member itself. | 1565 /// if any. Otherwise [implementation] points to the member itself. |
| 1565 Member get implementation; | 1566 Member get implementation; |
| 1566 } | 1567 } |
| 1567 | 1568 |
| OLD | NEW |