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 'package:front_end/src/fasta/parser/async_modifier.dart' | 7 import 'package:front_end/src/fasta/parser/async_modifier.dart' |
8 show AsyncModifier; | 8 show AsyncModifier; |
9 | 9 |
10 import '../common.dart'; | 10 import '../common.dart'; |
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 bool get isStringFromEnvironmentConstructor; | 1505 bool get isStringFromEnvironmentConstructor; |
1506 | 1506 |
1507 /// Use [enclosingClass] instead. | 1507 /// Use [enclosingClass] instead. |
1508 @deprecated | 1508 @deprecated |
1509 get enclosingElement; | 1509 get enclosingElement; |
1510 } | 1510 } |
1511 | 1511 |
1512 /// JavaScript backend specific element for the body of constructor. | 1512 /// JavaScript backend specific element for the body of constructor. |
1513 // TODO(johnniwinther): Remove this class from the element model. | 1513 // TODO(johnniwinther): Remove this class from the element model. |
1514 abstract class ConstructorBodyElement extends MethodElement { | 1514 abstract class ConstructorBodyElement extends MethodElement { |
1515 FunctionElement get constructor; | 1515 ConstructorElement get constructor; |
1516 } | 1516 } |
1517 | 1517 |
1518 /// [GenericElement] defines the common interface for generic functions and | 1518 /// [GenericElement] defines the common interface for generic functions and |
1519 /// [TypeDeclarationElement]. | 1519 /// [TypeDeclarationElement]. |
1520 abstract class GenericElement extends Element implements AstElement { | 1520 abstract class GenericElement extends Element implements AstElement { |
1521 /// Do not use [computeType] outside of the resolver. | 1521 /// Do not use [computeType] outside of the resolver. |
1522 /// | 1522 /// |
1523 /// Trying to access a type that has not been computed in resolution is an | 1523 /// Trying to access a type that has not been computed in resolution is an |
1524 /// error and calling [computeType] covers that error. | 1524 /// error and calling [computeType] covers that error. |
1525 /// This method will go away! | 1525 /// This method will go away! |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2032 /// by a field. | 2032 /// by a field. |
2033 bool get isDeclaredByField; | 2033 bool get isDeclaredByField; |
2034 | 2034 |
2035 /// Returns `true` if this member is abstract. | 2035 /// Returns `true` if this member is abstract. |
2036 bool get isAbstract; | 2036 bool get isAbstract; |
2037 | 2037 |
2038 /// If abstract, [implementation] points to the overridden concrete member, | 2038 /// If abstract, [implementation] points to the overridden concrete member, |
2039 /// if any. Otherwise [implementation] points to the member itself. | 2039 /// if any. Otherwise [implementation] points to the member itself. |
2040 Member get implementation; | 2040 Member get implementation; |
2041 } | 2041 } |
OLD | NEW |