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

Side by Side Diff: pkg/compiler/lib/src/resolution/tree_elements.dart

Issue 2930293002: Parameterize and move JumpTarget/LabelDefition to elements/jumps.dart (Closed)
Patch Set: Fix Created 3 years, 6 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) 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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/registry.dart ('k') | pkg/compiler/lib/src/serialization/equivalence.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698