OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.serialization.resolved_ast; | 5 library dart2js.serialization.resolved_ast; |
6 | 6 |
| 7 import 'package:front_end/src/fasta/parser.dart' show Parser, ParserError; |
| 8 import 'package:front_end/src/fasta/scanner.dart'; |
| 9 |
7 import '../common.dart'; | 10 import '../common.dart'; |
8 import '../common/resolution.dart'; | 11 import '../common/resolution.dart'; |
9 import '../constants/expressions.dart'; | 12 import '../constants/expressions.dart'; |
10 import '../elements/resolution_types.dart'; | |
11 import '../diagnostics/diagnostic_listener.dart'; | 13 import '../diagnostics/diagnostic_listener.dart'; |
12 import '../elements/elements.dart'; | 14 import '../elements/elements.dart'; |
| 15 import '../elements/jumps.dart'; |
13 import '../elements/modelx.dart'; | 16 import '../elements/modelx.dart'; |
14 import 'package:front_end/src/fasta/parser.dart' show Parser, ParserError; | 17 import '../elements/resolution_types.dart'; |
15 import '../parser/node_listener.dart' show NodeListener; | 18 import '../parser/node_listener.dart' show NodeListener; |
16 import '../resolution/enum_creator.dart'; | 19 import '../resolution/enum_creator.dart'; |
17 import '../resolution/send_structure.dart'; | 20 import '../resolution/send_structure.dart'; |
18 import '../resolution/tree_elements.dart'; | 21 import '../resolution/tree_elements.dart'; |
19 import 'package:front_end/src/fasta/scanner.dart'; | |
20 import '../tree/tree.dart'; | 22 import '../tree/tree.dart'; |
21 import '../universe/selector.dart'; | 23 import '../universe/selector.dart'; |
22 import 'keys.dart'; | 24 import 'keys.dart'; |
23 import 'modelz.dart'; | 25 import 'modelz.dart'; |
24 import 'serialization.dart'; | 26 import 'serialization.dart'; |
25 import 'serialization_util.dart'; | 27 import 'serialization_util.dart'; |
26 | 28 |
27 /// Visitor that computes a node-index mapping. | 29 /// Visitor that computes a node-index mapping. |
28 class AstIndexComputer extends Visitor { | 30 class AstIndexComputer extends Visitor { |
29 final Map<Node, int> nodeIndices = <Node, int>{}; | 31 final Map<Node, int> nodeIndices = <Node, int>{}; |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 } | 707 } |
706 } | 708 } |
707 } | 709 } |
708 element.resolvedAst = | 710 element.resolvedAst = |
709 new ParsedResolvedAst(element, root, body, elements, uri); | 711 new ParsedResolvedAst(element, root, body, elements, uri); |
710 } | 712 } |
711 } | 713 } |
712 | 714 |
713 const Key PARAMETER_NODE = const Key('parameter.node'); | 715 const Key PARAMETER_NODE = const Key('parameter.node'); |
714 const Key PARAMETER_INITIALIZER = const Key('parameter.initializer'); | 716 const Key PARAMETER_INITIALIZER = const Key('parameter.initializer'); |
OLD | NEW |