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 | 8 import '../common/resolution.dart' show |
9 Resolution; | 9 Resolution; |
10 import '../compiler.dart' show | 10 import '../compiler.dart' show |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 /// class E = C with D; | 1277 /// class E = C with D; |
1278 /// | 1278 /// |
1279 /// Class `E` has a synthesized constructor, `E.c`, whose defining constructor | 1279 /// Class `E` has a synthesized constructor, `E.c`, whose defining constructor |
1280 /// is `C.c`. | 1280 /// is `C.c`. |
1281 ConstructorElement get definingConstructor; | 1281 ConstructorElement get definingConstructor; |
1282 | 1282 |
1283 /// The constant constructor defining the binding of fields if `const`, | 1283 /// The constant constructor defining the binding of fields if `const`, |
1284 /// `null` otherwise. | 1284 /// `null` otherwise. |
1285 ConstantConstructor get constantConstructor; | 1285 ConstantConstructor get constantConstructor; |
1286 | 1286 |
1287 /// `true` if this constructor is either `bool.fromEnviroment` | 1287 /// `true` if this constructor is one of `bool.fromEnvironment`, |
| 1288 /// `int.fromEnvironment`, or `String.fromEnvironment`. |
1288 bool get isFromEnvironmentConstructor; | 1289 bool get isFromEnvironmentConstructor; |
1289 | 1290 |
1290 /// Use [enclosingClass] instead. | 1291 /// Use [enclosingClass] instead. |
1291 @deprecated | 1292 @deprecated |
1292 get enclosingElement; | 1293 get enclosingElement; |
1293 } | 1294 } |
1294 | 1295 |
1295 /// JavaScript backend specific element for the body of constructor. | 1296 /// JavaScript backend specific element for the body of constructor. |
1296 // TODO(johnniwinther): Remove this class from the element model. | 1297 // TODO(johnniwinther): Remove this class from the element model. |
1297 abstract class ConstructorBodyElement extends MethodElement { | 1298 abstract class ConstructorBodyElement extends MethodElement { |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 bool get isDeclaredByField; | 1703 bool get isDeclaredByField; |
1703 | 1704 |
1704 /// Returns `true` if this member is abstract. | 1705 /// Returns `true` if this member is abstract. |
1705 bool get isAbstract; | 1706 bool get isAbstract; |
1706 | 1707 |
1707 /// If abstract, [implementation] points to the overridden concrete member, | 1708 /// If abstract, [implementation] points to the overridden concrete member, |
1708 /// if any. Otherwise [implementation] points to the member itself. | 1709 /// if any. Otherwise [implementation] points to the member itself. |
1709 Member get implementation; | 1710 Member get implementation; |
1710 } | 1711 } |
1711 | 1712 |
OLD | NEW |