| 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 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 /// | 1216 /// |
| 1217 /// class C { factory C() = D; } | 1217 /// class C { factory C() = D; } |
| 1218 /// class D { factory D() = E; } | 1218 /// class D { factory D() = E; } |
| 1219 /// class E { E(); } | 1219 /// class E { E(); } |
| 1220 /// | 1220 /// |
| 1221 /// The immediate redirection target of `C` is `D` and the immediate | 1221 /// The immediate redirection target of `C` is `D` and the immediate |
| 1222 /// redirection target of `D` is `E`. `E` is not a redirecting factory | 1222 /// redirection target of `D` is `E`. `E` is not a redirecting factory |
| 1223 /// constructor so its immediate redirection target is `null`. | 1223 /// constructor so its immediate redirection target is `null`. |
| 1224 ConstructorElement get immediateRedirectionTarget; | 1224 ConstructorElement get immediateRedirectionTarget; |
| 1225 | 1225 |
| 1226 /// Is `true` if this constructor is a redirecting generative constructor. |
| 1227 bool get isRedirectingGenerative; |
| 1228 |
| 1226 /// Is `true` if this constructor is a redirecting factory constructor. | 1229 /// Is `true` if this constructor is a redirecting factory constructor. |
| 1227 bool get isRedirectingFactory; | 1230 bool get isRedirectingFactory; |
| 1228 | 1231 |
| 1229 /// Compute the type of the effective target of this constructor for an | 1232 /// Compute the type of the effective target of this constructor for an |
| 1230 /// instantiation site with type [:newType:]. | 1233 /// instantiation site with type [:newType:]. |
| 1231 InterfaceType computeEffectiveTargetType(InterfaceType newType); | 1234 InterfaceType computeEffectiveTargetType(InterfaceType newType); |
| 1232 | 1235 |
| 1233 /// If this is a synthesized constructor [definingConstructor] points to | 1236 /// If this is a synthesized constructor [definingConstructor] points to |
| 1234 /// the generative constructor from which this constructor was created. | 1237 /// the generative constructor from which this constructor was created. |
| 1235 /// Otherwise [definingConstructor] is `null`. | 1238 /// Otherwise [definingConstructor] is `null`. |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1620 bool get isDeclaredByField; | 1623 bool get isDeclaredByField; |
| 1621 | 1624 |
| 1622 /// Returns `true` if this member is abstract. | 1625 /// Returns `true` if this member is abstract. |
| 1623 bool get isAbstract; | 1626 bool get isAbstract; |
| 1624 | 1627 |
| 1625 /// If abstract, [implementation] points to the overridden concrete member, | 1628 /// If abstract, [implementation] points to the overridden concrete member, |
| 1626 /// if any. Otherwise [implementation] points to the member itself. | 1629 /// if any. Otherwise [implementation] points to the member itself. |
| 1627 Member get implementation; | 1630 Member get implementation; |
| 1628 } | 1631 } |
| 1629 | 1632 |
| OLD | NEW |