OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart2js.resolution.tree_elements; | 5 library dart2js.resolution.tree_elements; |
6 | 6 |
| 7 import '../common.dart'; |
7 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
8 import '../dart_types.dart'; | 9 import '../dart_types.dart'; |
9 import '../diagnostics/invariant.dart' show | |
10 invariant; | |
11 import '../diagnostics/spannable.dart' show | |
12 Spannable; | |
13 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
14 import '../types/types.dart' show | 11 import '../types/types.dart' show |
15 TypeMask; | 12 TypeMask; |
16 import '../tree/tree.dart'; | 13 import '../tree/tree.dart'; |
17 import '../util/util.dart'; | 14 import '../util/util.dart'; |
18 import '../universe/call_structure.dart' show | |
19 CallStructure; | |
20 import '../universe/selector.dart' show | 15 import '../universe/selector.dart' show |
21 Selector; | 16 Selector; |
22 import '../universe/universe.dart' show | |
23 UniverseSelector; | |
24 | 17 |
25 import 'secret_tree_element.dart' show getTreeElement, setTreeElement; | 18 import 'secret_tree_element.dart' show |
| 19 getTreeElement, |
| 20 setTreeElement; |
26 import 'send_structure.dart'; | 21 import 'send_structure.dart'; |
27 | 22 |
28 abstract class TreeElements { | 23 abstract class TreeElements { |
29 AnalyzableElement get analyzedElement; | 24 AnalyzableElement get analyzedElement; |
30 Iterable<Node> get superUses; | 25 Iterable<Node> get superUses; |
31 | 26 |
32 /// Iterables of the dependencies that this [TreeElement] records of | 27 /// Iterables of the dependencies that this [TreeElement] records of |
33 /// [analyzedElement]. | 28 /// [analyzedElement]. |
34 Iterable<Element> get allElements; | 29 Iterable<Element> get allElements; |
35 | 30 |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 } | 535 } |
541 | 536 |
542 void setCurrentTypeMask(ForIn node, TypeMask mask) { | 537 void setCurrentTypeMask(ForIn node, TypeMask mask) { |
543 _setTypeMask(node.inToken, mask); | 538 _setTypeMask(node.inToken, mask); |
544 } | 539 } |
545 | 540 |
546 TypeMask getCurrentTypeMask(ForIn node) { | 541 TypeMask getCurrentTypeMask(ForIn node) { |
547 return _getTypeMask(node.inToken); | 542 return _getTypeMask(node.inToken); |
548 } | 543 } |
549 } | 544 } |
OLD | NEW |