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 '../common.dart'; |
8 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
9 import '../elements/resolution_types.dart'; | 9 import '../elements/resolution_types.dart'; |
10 import '../diagnostics/source_span.dart'; | 10 import '../diagnostics/source_span.dart'; |
11 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
| 12 import '../elements/jumps.dart'; |
12 import '../tree/tree.dart'; | 13 import '../tree/tree.dart'; |
13 import '../universe/selector.dart' show Selector; | 14 import '../universe/selector.dart' show Selector; |
14 import '../util/util.dart'; | 15 import '../util/util.dart'; |
15 import 'secret_tree_element.dart' show getTreeElement, setTreeElement; | 16 import 'secret_tree_element.dart' show getTreeElement, setTreeElement; |
16 import 'send_structure.dart'; | 17 import 'send_structure.dart'; |
17 | 18 |
18 abstract class TreeElements { | 19 abstract class TreeElements { |
19 AnalyzableElement get analyzedElement; | 20 AnalyzableElement get analyzedElement; |
20 Iterable<SourceSpan> get superUses; | 21 Iterable<SourceSpan> get superUses; |
21 | 22 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 _nativeData = <Node, dynamic>{}; | 429 _nativeData = <Node, dynamic>{}; |
429 } | 430 } |
430 _nativeData[node] = nativeData; | 431 _nativeData[node] = nativeData; |
431 } | 432 } |
432 | 433 |
433 @override | 434 @override |
434 dynamic getNativeData(Node node) { | 435 dynamic getNativeData(Node node) { |
435 return _nativeData != null ? _nativeData[node] : null; | 436 return _nativeData != null ? _nativeData[node] : null; |
436 } | 437 } |
437 } | 438 } |
OLD | NEW |