OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.modelx; | 5 library elements.modelx; |
6 | 6 |
7 import 'common.dart'; | 7 import '../compiler.dart' show |
8 import 'elements.dart'; | 8 Compiler, |
| 9 isPrivateName; |
9 import '../constants/constant_constructors.dart'; | 10 import '../constants/constant_constructors.dart'; |
10 import '../constants/constructors.dart'; | 11 import '../constants/constructors.dart'; |
11 import '../constants/expressions.dart'; | 12 import '../constants/expressions.dart'; |
| 13 import '../dart_types.dart'; |
12 import '../diagnostic_listener.dart'; | 14 import '../diagnostic_listener.dart'; |
| 15 import '../diagnostics/invariant.dart' show |
| 16 invariant; |
| 17 import '../diagnostics/source_span.dart' show |
| 18 SourceSpan; |
| 19 import '../diagnostics/spannable.dart' show |
| 20 Spannable, |
| 21 SpannableAssertionFailure; |
13 import '../helpers/helpers.dart'; | 22 import '../helpers/helpers.dart'; |
14 import '../messages.dart'; | 23 import '../messages.dart'; |
15 import '../script.dart'; | 24 import '../ordered_typeset.dart' show |
16 import '../tree/tree.dart'; | 25 OrderedTypeSet; |
17 import '../util/util.dart'; | |
18 import '../resolution/resolution.dart'; | 26 import '../resolution/resolution.dart'; |
19 import '../resolution/class_members.dart' show ClassMemberMixin; | 27 import '../resolution/class_members.dart' show |
20 | 28 ClassMemberMixin; |
21 import '../dart2jslib.dart' show | |
22 Backend, | |
23 Compiler, | |
24 Constant, | |
25 DartType, | |
26 DiagnosticListener, | |
27 DualKind, | |
28 FunctionType, | |
29 InterfaceType, | |
30 MessageKind, | |
31 MessageTemplate, | |
32 Script, | |
33 Selector, | |
34 SourceSpan, | |
35 TypeVariableType, | |
36 TypedefType, | |
37 invariant, | |
38 isPrivateName; | |
39 | |
40 import '../dart_types.dart'; | |
41 | |
42 import '../scanner/scannerlib.dart' show | 29 import '../scanner/scannerlib.dart' show |
43 EOF_TOKEN, | 30 EOF_TOKEN, |
44 ErrorToken, | 31 ErrorToken, |
45 Token; | 32 Token; |
| 33 import '../script.dart'; |
| 34 import '../tree/tree.dart'; |
| 35 import '../util/util.dart'; |
46 | 36 |
47 import '../ordered_typeset.dart' show OrderedTypeSet; | 37 import 'common.dart'; |
48 | 38 import 'elements.dart'; |
49 import 'visitor.dart' show ElementVisitor; | 39 import 'visitor.dart' show |
| 40 ElementVisitor; |
50 | 41 |
51 abstract class DeclarationSite { | 42 abstract class DeclarationSite { |
52 } | 43 } |
53 | 44 |
54 abstract class ElementX extends Element with ElementCommon { | 45 abstract class ElementX extends Element with ElementCommon { |
55 static int elementHashCode = 0; | 46 static int elementHashCode = 0; |
56 | 47 |
57 final String name; | 48 final String name; |
58 final ElementKind kind; | 49 final ElementKind kind; |
59 final Element enclosingElement; | 50 final Element enclosingElement; |
(...skipping 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2906 AstElement get definingElement; | 2897 AstElement get definingElement; |
2907 | 2898 |
2908 bool get hasResolvedAst => definingElement.hasTreeElements; | 2899 bool get hasResolvedAst => definingElement.hasTreeElements; |
2909 | 2900 |
2910 ResolvedAst get resolvedAst { | 2901 ResolvedAst get resolvedAst { |
2911 return new ResolvedAst(declaration, | 2902 return new ResolvedAst(declaration, |
2912 definingElement.node, definingElement.treeElements); | 2903 definingElement.node, definingElement.treeElements); |
2913 } | 2904 } |
2914 | 2905 |
2915 } | 2906 } |
OLD | NEW |