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 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 /// Consider for instance this hierarchy: | 1371 /// Consider for instance this hierarchy: |
1372 /// | 1372 /// |
1373 /// class C { C.c(a, {b}); | 1373 /// class C { C.c(a, {b}); |
1374 /// class D {} | 1374 /// class D {} |
1375 /// class E = C with D; | 1375 /// class E = C with D; |
1376 /// | 1376 /// |
1377 /// Class `E` has a synthesized constructor, `E.c`, whose defining constructor | 1377 /// Class `E` has a synthesized constructor, `E.c`, whose defining constructor |
1378 /// is `C.c`. | 1378 /// is `C.c`. |
1379 ConstructorElement get definingConstructor; | 1379 ConstructorElement get definingConstructor; |
1380 | 1380 |
| 1381 /// Returns `true` if this constructor is an implicit default constructor. |
| 1382 bool get isDefaultConstructor; |
| 1383 |
1381 /// The constant constructor defining the binding of fields if `const`, | 1384 /// The constant constructor defining the binding of fields if `const`, |
1382 /// `null` otherwise. | 1385 /// `null` otherwise. |
1383 ConstantConstructor get constantConstructor; | 1386 ConstantConstructor get constantConstructor; |
1384 | 1387 |
1385 /// `true` if this constructor is one of `bool.fromEnvironment`, | 1388 /// `true` if this constructor is one of `bool.fromEnvironment`, |
1386 /// `int.fromEnvironment`, or `String.fromEnvironment`. | 1389 /// `int.fromEnvironment`, or `String.fromEnvironment`. |
1387 bool get isFromEnvironmentConstructor; | 1390 bool get isFromEnvironmentConstructor; |
1388 | 1391 |
1389 /// `true` if this constructor is `int.fromEnvironment`. | 1392 /// `true` if this constructor is `int.fromEnvironment`. |
1390 bool get isIntFromEnvironmentConstructor; | 1393 bool get isIntFromEnvironmentConstructor; |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1909 /// by a field. | 1912 /// by a field. |
1910 bool get isDeclaredByField; | 1913 bool get isDeclaredByField; |
1911 | 1914 |
1912 /// Returns `true` if this member is abstract. | 1915 /// Returns `true` if this member is abstract. |
1913 bool get isAbstract; | 1916 bool get isAbstract; |
1914 | 1917 |
1915 /// If abstract, [implementation] points to the overridden concrete member, | 1918 /// If abstract, [implementation] points to the overridden concrete member, |
1916 /// if any. Otherwise [implementation] points to the member itself. | 1919 /// if any. Otherwise [implementation] points to the member itself. |
1917 Member get implementation; | 1920 Member get implementation; |
1918 } | 1921 } |
OLD | NEW |