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 '../constants/constructors.dart'; | 9 import '../constants/constructors.dart'; |
10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 /// `true` if this constructor is `String.fromEnvironment`. | 1405 /// `true` if this constructor is `String.fromEnvironment`. |
1406 bool get isStringFromEnvironmentConstructor; | 1406 bool get isStringFromEnvironmentConstructor; |
1407 | 1407 |
1408 /// Use [enclosingClass] instead. | 1408 /// Use [enclosingClass] instead. |
1409 @deprecated | 1409 @deprecated |
1410 get enclosingElement; | 1410 get enclosingElement; |
1411 } | 1411 } |
1412 | 1412 |
1413 /// JavaScript backend specific element for the body of constructor. | 1413 /// JavaScript backend specific element for the body of constructor. |
1414 // TODO(johnniwinther): Remove this class from the element model. | 1414 // TODO(johnniwinther): Remove this class from the element model. |
1415 abstract class ConstructorBodyElement extends MethodElement { | 1415 abstract class ConstructorBodyElement extends MethodElement |
| 1416 implements ConstructorBodyEntity { |
1416 ConstructorElement get constructor; | 1417 ConstructorElement get constructor; |
1417 } | 1418 } |
1418 | 1419 |
1419 /// [GenericElement] defines the common interface for generic functions and | 1420 /// [GenericElement] defines the common interface for generic functions and |
1420 /// [TypeDeclarationElement]. | 1421 /// [TypeDeclarationElement]. |
1421 abstract class GenericElement extends Element implements AstElement { | 1422 abstract class GenericElement extends Element implements AstElement { |
1422 /// Do not use [computeType] outside of the resolver. | 1423 /// Do not use [computeType] outside of the resolver. |
1423 /// | 1424 /// |
1424 /// Trying to access a type that has not been computed in resolution is an | 1425 /// Trying to access a type that has not been computed in resolution is an |
1425 /// error and calling [computeType] covers that error. | 1426 /// error and calling [computeType] covers that error. |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 /// by a field. | 1900 /// by a field. |
1900 bool get isDeclaredByField; | 1901 bool get isDeclaredByField; |
1901 | 1902 |
1902 /// Returns `true` if this member is abstract. | 1903 /// Returns `true` if this member is abstract. |
1903 bool get isAbstract; | 1904 bool get isAbstract; |
1904 | 1905 |
1905 /// If abstract, [implementation] points to the overridden concrete member, | 1906 /// If abstract, [implementation] points to the overridden concrete member, |
1906 /// if any. Otherwise [implementation] points to the member itself. | 1907 /// if any. Otherwise [implementation] points to the member itself. |
1907 Member get implementation; | 1908 Member get implementation; |
1908 } | 1909 } |
OLD | NEW |