Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart'; 8 import '../common/resolution.dart';
9 import '../constants/expressions.dart'; 9 import '../constants/expressions.dart';
10 import '../dart_types.dart'; 10 import '../dart_types.dart';
11 import '../diagnostics/diagnostic_listener.dart'; 11 import '../diagnostics/diagnostic_listener.dart';
12 import '../elements/elements.dart'; 12 import '../elements/elements.dart';
13 import '../elements/modelx.dart'; 13 import '../elements/modelx.dart';
14 import '../parser/listener.dart' show ParserError; 14 import '../parser/listener.dart' show ParserError;
15 import '../parser/node_listener.dart' show NodeListener; 15 import '../parser/node_listener.dart' show NodeListener;
16 import '../parser/parser.dart' show Parser; 16 import '../parser/parser.dart' show Parser;
17 import '../resolution/enum_creator.dart'; 17 import '../resolution/enum_creator.dart';
18 import '../resolution/send_structure.dart'; 18 import '../resolution/send_structure.dart';
19 import '../resolution/tree_elements.dart'; 19 import '../resolution/tree_elements.dart';
20 import '../tokens/token.dart'; 20 import '../tokens/token.dart';
21 import '../tree/tree.dart'; 21 import '../tree/tree.dart';
22 import '../universe/selector.dart'; 22 import '../universe/selector.dart';
23 import '../util/util.dart'; 23 import '../util/util.dart';
24 import 'keys.dart'; 24 import 'keys.dart';
25 import 'modelz.dart'; 25 import 'modelz.dart';
26 import 'serialization.dart'; 26 import 'serialization.dart';
27 import 'serialization_util.dart'; 27 import 'serialization_util.dart';
28 import 'modelz.dart';
29 28
30 /// Visitor that computes a node-index mapping. 29 /// Visitor that computes a node-index mapping.
31 class AstIndexComputer extends Visitor { 30 class AstIndexComputer extends Visitor {
32 final Map<Node, int> nodeIndices = <Node, int>{}; 31 final Map<Node, int> nodeIndices = <Node, int>{};
33 final List<Node> nodeList = <Node>[]; 32 final List<Node> nodeList = <Node>[];
34 33
35 @override 34 @override
36 visitNode(Node node) { 35 visitNode(Node node) {
37 nodeIndices.putIfAbsent(node, () { 36 nodeIndices.putIfAbsent(node, () {
38 // Some nodes (like Modifier and empty NodeList) can be reused. 37 // Some nodes (like Modifier and empty NodeList) can be reused.
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 687 }
689 } 688 }
690 } 689 }
691 element.resolvedAst = 690 element.resolvedAst =
692 new ParsedResolvedAst(element, root, body, elements, uri); 691 new ParsedResolvedAst(element, root, body, elements, uri);
693 } 692 }
694 } 693 }
695 694
696 const Key PARAMETER_NODE = const Key('parameter.node'); 695 const Key PARAMETER_NODE = const Key('parameter.node');
697 const Key PARAMETER_INITIALIZER = const Key('parameter.initializer'); 696 const Key PARAMETER_INITIALIZER = const Key('parameter.initializer');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/modelz.dart ('k') | pkg/compiler/lib/src/serialization/serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698