| 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 '../constants/constructors.dart'; | 9 import '../constants/constructors.dart'; |
| 10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
| (...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1096 MemberElement get memberContext; | 1096 MemberElement get memberContext; |
| 1097 } | 1097 } |
| 1098 | 1098 |
| 1099 /// A top-level, static or instance field or method, or a constructor. | 1099 /// A top-level, static or instance field or method, or a constructor. |
| 1100 /// | 1100 /// |
| 1101 /// A [MemberElement] is the outermost executable element for any executable | 1101 /// A [MemberElement] is the outermost executable element for any executable |
| 1102 /// context. | 1102 /// context. |
| 1103 abstract class MemberElement extends Element | 1103 abstract class MemberElement extends Element |
| 1104 implements ExecutableElement, MemberEntity { | 1104 implements ExecutableElement, MemberEntity { |
| 1105 /// The local functions defined within this member. | 1105 /// The local functions defined within this member. |
| 1106 List<FunctionElement> get nestedClosures; | 1106 List<MethodElement> get nestedClosures; |
| 1107 | 1107 |
| 1108 /// The name of this member, taking privacy into account. | 1108 /// The name of this member, taking privacy into account. |
| 1109 Name get memberName; | 1109 Name get memberName; |
| 1110 } | 1110 } |
| 1111 | 1111 |
| 1112 /// A function, variable or parameter defined in an executable context. | 1112 /// A function, variable or parameter defined in an executable context. |
| 1113 abstract class LocalElement extends Element | 1113 abstract class LocalElement extends Element |
| 1114 implements AstElement, TypedElement, Local { | 1114 implements AstElement, TypedElement, Local { |
| 1115 ExecutableElement get executableContext; | 1115 ExecutableElement get executableContext; |
| 1116 } | 1116 } |
| (...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1904 /// by a field. | 1904 /// by a field. |
| 1905 bool get isDeclaredByField; | 1905 bool get isDeclaredByField; |
| 1906 | 1906 |
| 1907 /// Returns `true` if this member is abstract. | 1907 /// Returns `true` if this member is abstract. |
| 1908 bool get isAbstract; | 1908 bool get isAbstract; |
| 1909 | 1909 |
| 1910 /// If abstract, [implementation] points to the overridden concrete member, | 1910 /// If abstract, [implementation] points to the overridden concrete member, |
| 1911 /// if any. Otherwise [implementation] points to the member itself. | 1911 /// if any. Otherwise [implementation] points to the member itself. |
| 1912 Member get implementation; | 1912 Member get implementation; |
| 1913 } | 1913 } |
| OLD | NEW |