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 '../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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 Name get memberName; | 969 Name get memberName; |
970 } | 970 } |
971 | 971 |
972 /// A function, variable or parameter defined in an executable context. | 972 /// A function, variable or parameter defined in an executable context. |
973 abstract class LocalElement extends Element | 973 abstract class LocalElement extends Element |
974 implements AstElement, TypedElement, Local { | 974 implements AstElement, TypedElement, Local { |
975 } | 975 } |
976 | 976 |
977 /// A top level, static or instance field, a formal parameter or local variable. | 977 /// A top level, static or instance field, a formal parameter or local variable. |
978 abstract class VariableElement extends ExecutableElement { | 978 abstract class VariableElement extends ExecutableElement { |
| 979 @override |
| 980 VariableDefinitions get node; |
| 981 |
979 Expression get initializer; | 982 Expression get initializer; |
980 | 983 |
981 /// The constant expression defining the value of the variable if `const`, | 984 /// The constant expression defining the value of the variable if `const`, |
982 /// `null` otherwise. | 985 /// `null` otherwise. |
983 ConstantExpression get constant; | 986 ConstantExpression get constant; |
984 } | 987 } |
985 | 988 |
986 /// An entity that defines a local entity (memory slot) in generated code. | 989 /// An entity that defines a local entity (memory slot) in generated code. |
987 /// | 990 /// |
988 /// Parameters, local variables and local functions (can) define local entity | 991 /// Parameters, local variables and local functions (can) define local entity |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1643 bool get isDeclaredByField; | 1646 bool get isDeclaredByField; |
1644 | 1647 |
1645 /// Returns `true` if this member is abstract. | 1648 /// Returns `true` if this member is abstract. |
1646 bool get isAbstract; | 1649 bool get isAbstract; |
1647 | 1650 |
1648 /// If abstract, [implementation] points to the overridden concrete member, | 1651 /// If abstract, [implementation] points to the overridden concrete member, |
1649 /// if any. Otherwise [implementation] points to the member itself. | 1652 /// if any. Otherwise [implementation] points to the member itself. |
1650 Member get implementation; | 1653 Member get implementation; |
1651 } | 1654 } |
1652 | 1655 |
OLD | NEW |