| 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 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1409 | 1409 |
| 1410 /// A top level, static or instance function. | 1410 /// A top level, static or instance function. |
| 1411 abstract class MethodElement extends FunctionElement | 1411 abstract class MethodElement extends FunctionElement |
| 1412 implements MemberElement, FunctionEntity {} | 1412 implements MemberElement, FunctionEntity {} |
| 1413 | 1413 |
| 1414 /// A local function or closure (anonymous local function). | 1414 /// A local function or closure (anonymous local function). |
| 1415 abstract class LocalFunctionElement extends FunctionElement | 1415 abstract class LocalFunctionElement extends FunctionElement |
| 1416 implements LocalElement {} | 1416 implements LocalElement {} |
| 1417 | 1417 |
| 1418 /// A constructor. | 1418 /// A constructor. |
| 1419 abstract class ConstructorElement extends MethodElement { | 1419 abstract class ConstructorElement extends MethodElement |
| 1420 implements ConstructorEntity { |
| 1420 /// Returns `true` if [effectiveTarget] has been computed for this | 1421 /// Returns `true` if [effectiveTarget] has been computed for this |
| 1421 /// constructor. | 1422 /// constructor. |
| 1422 bool get hasEffectiveTarget; | 1423 bool get hasEffectiveTarget; |
| 1423 | 1424 |
| 1424 /// The effective target of this constructor, that is the non-redirecting | 1425 /// The effective target of this constructor, that is the non-redirecting |
| 1425 /// constructor that is called on invocation of this constructor. | 1426 /// constructor that is called on invocation of this constructor. |
| 1426 /// | 1427 /// |
| 1427 /// Consider for instance this hierarchy: | 1428 /// Consider for instance this hierarchy: |
| 1428 /// | 1429 /// |
| 1429 /// class C { factory C.c() = D.d; } | 1430 /// class C { factory C.c() = D.d; } |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2044 /// by a field. | 2045 /// by a field. |
| 2045 bool get isDeclaredByField; | 2046 bool get isDeclaredByField; |
| 2046 | 2047 |
| 2047 /// Returns `true` if this member is abstract. | 2048 /// Returns `true` if this member is abstract. |
| 2048 bool get isAbstract; | 2049 bool get isAbstract; |
| 2049 | 2050 |
| 2050 /// If abstract, [implementation] points to the overridden concrete member, | 2051 /// If abstract, [implementation] points to the overridden concrete member, |
| 2051 /// if any. Otherwise [implementation] points to the member itself. | 2052 /// if any. Otherwise [implementation] points to the member itself. |
| 2052 Member get implementation; | 2053 Member get implementation; |
| 2053 } | 2054 } |
| OLD | NEW |