| 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 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Resolution; | 8 import '../common/resolution.dart' show Resolution; |
| 9 import '../compiler.dart' show Compiler; | 9 import '../compiler.dart' show Compiler; |
| 10 import '../constants/constructors.dart'; | 10 import '../constants/constructors.dart'; |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 abstract class LocalElement extends Element | 998 abstract class LocalElement extends Element |
| 999 implements AstElement, TypedElement, Local {} | 999 implements AstElement, TypedElement, Local {} |
| 1000 | 1000 |
| 1001 /// A top level, static or instance field, a formal parameter or local variable. | 1001 /// A top level, static or instance field, a formal parameter or local variable. |
| 1002 abstract class VariableElement extends ExecutableElement { | 1002 abstract class VariableElement extends ExecutableElement { |
| 1003 @override | 1003 @override |
| 1004 VariableDefinitions get node; | 1004 VariableDefinitions get node; |
| 1005 | 1005 |
| 1006 Expression get initializer; | 1006 Expression get initializer; |
| 1007 | 1007 |
| 1008 bool get hasConstant; |
| 1009 |
| 1008 /// The constant expression defining the (initial) value of the variable. | 1010 /// The constant expression defining the (initial) value of the variable. |
| 1009 /// | 1011 /// |
| 1010 /// If the variable is `const` the value is always non-null, possibly an | 1012 /// If the variable is `const` the value is always non-null, possibly an |
| 1011 /// [ErroneousConstantExpression], otherwise, the value is null when the | 1013 /// [ErroneousConstantExpression], otherwise, the value is null when the |
| 1012 /// initializer isn't a constant expression. | 1014 /// initializer isn't a constant expression. |
| 1013 ConstantExpression get constant; | 1015 ConstantExpression get constant; |
| 1014 } | 1016 } |
| 1015 | 1017 |
| 1016 /// An entity that defines a local entity (memory slot) in generated code. | 1018 /// An entity that defines a local entity (memory slot) in generated code. |
| 1017 /// | 1019 /// |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1828 /// by a field. | 1830 /// by a field. |
| 1829 bool get isDeclaredByField; | 1831 bool get isDeclaredByField; |
| 1830 | 1832 |
| 1831 /// Returns `true` if this member is abstract. | 1833 /// Returns `true` if this member is abstract. |
| 1832 bool get isAbstract; | 1834 bool get isAbstract; |
| 1833 | 1835 |
| 1834 /// If abstract, [implementation] points to the overridden concrete member, | 1836 /// If abstract, [implementation] points to the overridden concrete member, |
| 1835 /// if any. Otherwise [implementation] points to the member itself. | 1837 /// if any. Otherwise [implementation] points to the member itself. |
| 1836 Member get implementation; | 1838 Member get implementation; |
| 1837 } | 1839 } |
| OLD | NEW |