| 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 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 /// A top level, static or instance function. | 1229 /// A top level, static or instance function. |
| 1230 abstract class MethodElement extends FunctionElement implements MemberElement {} | 1230 abstract class MethodElement extends FunctionElement implements MemberElement {} |
| 1231 | 1231 |
| 1232 /// A local function or closure (anonymous local function). | 1232 /// A local function or closure (anonymous local function). |
| 1233 abstract class LocalFunctionElement extends FunctionElement | 1233 abstract class LocalFunctionElement extends FunctionElement |
| 1234 implements LocalElement {} | 1234 implements LocalElement {} |
| 1235 | 1235 |
| 1236 /// A constructor. | 1236 /// A constructor. |
| 1237 abstract class ConstructorElement extends FunctionElement | 1237 abstract class ConstructorElement extends FunctionElement |
| 1238 implements MemberElement { | 1238 implements MemberElement { |
| 1239 /// Returns `true` if [effectiveTarget] has been computed for this |
| 1240 /// constructor. |
| 1241 bool get hasEffectiveTarget; |
| 1242 |
| 1239 /// The effective target of this constructor, that is the non-redirecting | 1243 /// The effective target of this constructor, that is the non-redirecting |
| 1240 /// constructor that is called on invocation of this constructor. | 1244 /// constructor that is called on invocation of this constructor. |
| 1241 /// | 1245 /// |
| 1242 /// Consider for instance this hierarchy: | 1246 /// Consider for instance this hierarchy: |
| 1243 /// | 1247 /// |
| 1244 /// class C { factory C.c() = D.d; } | 1248 /// class C { factory C.c() = D.d; } |
| 1245 /// class D { factory D.d() = E.e2; } | 1249 /// class D { factory D.d() = E.e2; } |
| 1246 /// class E { E.e1(); | 1250 /// class E { E.e1(); |
| 1247 /// E.e2() : this.e1(); } | 1251 /// E.e2() : this.e1(); } |
| 1248 /// | 1252 /// |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1824 /// by a field. | 1828 /// by a field. |
| 1825 bool get isDeclaredByField; | 1829 bool get isDeclaredByField; |
| 1826 | 1830 |
| 1827 /// Returns `true` if this member is abstract. | 1831 /// Returns `true` if this member is abstract. |
| 1828 bool get isAbstract; | 1832 bool get isAbstract; |
| 1829 | 1833 |
| 1830 /// If abstract, [implementation] points to the overridden concrete member, | 1834 /// If abstract, [implementation] points to the overridden concrete member, |
| 1831 /// if any. Otherwise [implementation] points to the member itself. | 1835 /// if any. Otherwise [implementation] points to the member itself. |
| 1832 Member get implementation; | 1836 Member get implementation; |
| 1833 } | 1837 } |
| OLD | NEW |