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

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

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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 '../parser/parser.dart' show Parser;
14 import '../parser/listener.dart' show ParserError; 13 import '../parser/listener.dart' show ParserError;
15 import '../parser/node_listener.dart' show NodeListener; 14 import '../parser/node_listener.dart' show NodeListener;
15 import '../parser/parser.dart' show Parser;
16 import '../resolution/enum_creator.dart'; 16 import '../resolution/enum_creator.dart';
17 import '../resolution/send_structure.dart'; 17 import '../resolution/send_structure.dart';
18 import '../resolution/tree_elements.dart'; 18 import '../resolution/tree_elements.dart';
19 import '../tokens/token.dart';
19 import '../tree/tree.dart'; 20 import '../tree/tree.dart';
20 import '../tokens/token.dart';
21 import '../universe/selector.dart'; 21 import '../universe/selector.dart';
22 import 'keys.dart'; 22 import 'keys.dart';
23 import 'serialization.dart'; 23 import 'serialization.dart';
24 import 'serialization_util.dart'; 24 import 'serialization_util.dart';
25 25
26 /// Visitor that computes a node-index mapping. 26 /// Visitor that computes a node-index mapping.
27 class AstIndexComputer extends Visitor { 27 class AstIndexComputer extends Visitor {
28 final Map<Node, int> nodeIndices = <Node, int>{}; 28 final Map<Node, int> nodeIndices = <Node, int>{};
29 final List<Node> nodeList = <Node>[]; 29 final List<Node> nodeList = <Node>[];
30 30
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 objectDecoder.getObject(Key.NEW_STRUCTURE, isOptional: true); 447 objectDecoder.getObject(Key.NEW_STRUCTURE, isOptional: true);
448 if (newStructureDecoder != null) { 448 if (newStructureDecoder != null) {
449 elements.setNewStructure( 449 elements.setNewStructure(
450 node, deserializeNewStructure(newStructureDecoder)); 450 node, deserializeNewStructure(newStructureDecoder));
451 } 451 }
452 } 452 }
453 } 453 }
454 return new ParsedResolvedAst(element, root, elements); 454 return new ParsedResolvedAst(element, root, elements);
455 } 455 }
456 } 456 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/modelz.dart ('k') | pkg/compiler/lib/src/serialization/serialization_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698