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'; |
11 import '../common/resolution.dart' show Resolution; | 11 import '../common/resolution.dart' show Resolution; |
12 import '../constants/constructors.dart'; | 12 import '../constants/constructors.dart'; |
13 import '../constants/expressions.dart'; | 13 import '../constants/expressions.dart'; |
14 import '../common_elements.dart' show CommonElements; | 14 import '../common_elements.dart' show CommonElements; |
15 import '../ordered_typeset.dart' show OrderedTypeSet; | 15 import '../ordered_typeset.dart' show OrderedTypeSet; |
16 import '../resolution/scope.dart' show Scope; | 16 import '../resolution/scope.dart' show Scope; |
17 import '../resolution/tree_elements.dart' show TreeElements; | 17 import '../resolution/tree_elements.dart' show TreeElements; |
18 import '../script.dart'; | 18 import '../script.dart'; |
19 import 'package:front_end/src/fasta/scanner.dart' | 19 import 'package:front_end/src/fasta/scanner.dart' |
20 show Token, isUserDefinableOperator, isMinusOperator; | 20 show Token, isUserDefinableOperator, isMinusOperator; |
21 import '../tree/tree.dart' hide AsyncModifier; | 21 import '../tree/tree.dart' hide AsyncModifier; |
22 import '../universe/call_structure.dart'; | 22 import '../universe/call_structure.dart'; |
23 import 'package:front_end/src/fasta/scanner/characters.dart' show $_; | 23 import 'package:front_end/src/fasta/scanner/characters.dart' show $_; |
24 import '../util/util.dart'; | 24 import '../util/util.dart'; |
25 import '../world.dart' show ClosedWorld; | 25 import '../world.dart' show ClosedWorld; |
26 import 'entities.dart'; | 26 import 'entities.dart'; |
27 import 'resolution_types.dart'; | 27 import 'resolution_types.dart'; |
| 28 import 'types.dart'; |
28 import 'visitor.dart' show ElementVisitor; | 29 import 'visitor.dart' show ElementVisitor; |
29 | 30 |
30 part 'names.dart'; | 31 part 'names.dart'; |
31 | 32 |
32 const int STATE_NOT_STARTED = 0; | 33 const int STATE_NOT_STARTED = 0; |
33 const int STATE_STARTED = 1; | 34 const int STATE_STARTED = 1; |
34 const int STATE_DONE = 2; | 35 const int STATE_DONE = 2; |
35 | 36 |
36 class ElementCategory { | 37 class ElementCategory { |
37 /** | 38 /** |
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1593 ResolutionInterfaceType get thisType; | 1594 ResolutionInterfaceType get thisType; |
1594 ClassElement get superclass; | 1595 ClassElement get superclass; |
1595 | 1596 |
1596 /// The direct supertype of this class. | 1597 /// The direct supertype of this class. |
1597 ResolutionDartType get supertype; | 1598 ResolutionDartType get supertype; |
1598 | 1599 |
1599 /// Ordered set of all supertypes of this class including the class itself. | 1600 /// Ordered set of all supertypes of this class including the class itself. |
1600 OrderedTypeSet get allSupertypesAndSelf; | 1601 OrderedTypeSet get allSupertypesAndSelf; |
1601 | 1602 |
1602 /// A list of all supertypes of this class excluding the class itself. | 1603 /// A list of all supertypes of this class excluding the class itself. |
1603 Link<ResolutionDartType> get allSupertypes; | 1604 Link<InterfaceType> get allSupertypes; |
1604 | 1605 |
1605 /// Returns the this type of this class as an instance of [cls]. | 1606 /// Returns the this type of this class as an instance of [cls]. |
1606 ResolutionInterfaceType asInstanceOf(ClassElement cls); | 1607 ResolutionInterfaceType asInstanceOf(ClassElement cls); |
1607 | 1608 |
1608 /// A list of all direct superinterfaces of this class. | 1609 /// A list of all direct superinterfaces of this class. |
1609 Link<ResolutionDartType> get interfaces; | 1610 Link<ResolutionDartType> get interfaces; |
1610 | 1611 |
1611 bool get hasConstructor; | 1612 bool get hasConstructor; |
1612 Link<Element> get constructors; | 1613 Link<Element> get constructors; |
1613 | 1614 |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2033 /// by a field. | 2034 /// by a field. |
2034 bool get isDeclaredByField; | 2035 bool get isDeclaredByField; |
2035 | 2036 |
2036 /// Returns `true` if this member is abstract. | 2037 /// Returns `true` if this member is abstract. |
2037 bool get isAbstract; | 2038 bool get isAbstract; |
2038 | 2039 |
2039 /// If abstract, [implementation] points to the overridden concrete member, | 2040 /// If abstract, [implementation] points to the overridden concrete member, |
2040 /// if any. Otherwise [implementation] points to the member itself. | 2041 /// if any. Otherwise [implementation] points to the member itself. |
2041 Member get implementation; | 2042 Member get implementation; |
2042 } | 2043 } |
OLD | NEW |