| 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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 /// context. | 985 /// context. |
| 986 abstract class MemberElement extends Element implements ExecutableElement { | 986 abstract class MemberElement extends Element implements ExecutableElement { |
| 987 /// The local functions defined within this member. | 987 /// The local functions defined within this member. |
| 988 List<FunctionElement> get nestedClosures; | 988 List<FunctionElement> get nestedClosures; |
| 989 | 989 |
| 990 /// The name of this member taking privacy into account. | 990 /// The name of this member taking privacy into account. |
| 991 Name get memberName; | 991 Name get memberName; |
| 992 } | 992 } |
| 993 | 993 |
| 994 /// A function, variable or parameter defined in an executable context. | 994 /// A function, variable or parameter defined in an executable context. |
| 995 abstract class LocalElement extends Element implements TypedElement, Local { | 995 abstract class LocalElement extends Element |
| 996 implements AstElement, TypedElement, Local { |
| 996 } | 997 } |
| 997 | 998 |
| 998 /// A top level, static or instance field, a formal parameter or local variable. | 999 /// A top level, static or instance field, a formal parameter or local variable. |
| 999 abstract class VariableElement extends ExecutableElement { | 1000 abstract class VariableElement extends ExecutableElement { |
| 1000 Expression get initializer; | 1001 Expression get initializer; |
| 1001 } | 1002 } |
| 1002 | 1003 |
| 1003 /// An entity that defines a local entity (memory slot) in generated code. | 1004 /// An entity that defines a local entity (memory slot) in generated code. |
| 1004 /// | 1005 /// |
| 1005 /// Parameters, local variables and local functions (can) define local entity | 1006 /// Parameters, local variables and local functions (can) define local entity |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 bool get isDeclaredByField; | 1633 bool get isDeclaredByField; |
| 1633 | 1634 |
| 1634 /// Returns `true` if this member is abstract. | 1635 /// Returns `true` if this member is abstract. |
| 1635 bool get isAbstract; | 1636 bool get isAbstract; |
| 1636 | 1637 |
| 1637 /// If abstract, [implementation] points to the overridden concrete member, | 1638 /// If abstract, [implementation] points to the overridden concrete member, |
| 1638 /// if any. Otherwise [implementation] points to the member itself. | 1639 /// if any. Otherwise [implementation] points to the member itself. |
| 1639 Member get implementation; | 1640 Member get implementation; |
| 1640 } | 1641 } |
| 1641 | 1642 |
| OLD | NEW |