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

Side by Side Diff: pkg/compiler/lib/src/kernel/element_map.dart

Issue 2975323002: Renamed some scoping classes to make their usage clearer. (Closed)
Patch Set: . Created 3 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/js_model/locals.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../constants/values.dart'; 9 import '../constants/values.dart';
10 import '../common_elements.dart'; 10 import '../common_elements.dart';
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 JumpTarget getJumpTargetForFor(ir.ForStatement node); 308 JumpTarget getJumpTargetForFor(ir.ForStatement node);
309 309
310 /// Returns the [JumpTarget] defined by the for-in statement [node] or `null` 310 /// Returns the [JumpTarget] defined by the for-in statement [node] or `null`
311 /// if [node] is not a jump target. 311 /// if [node] is not a jump target.
312 JumpTarget getJumpTargetForForIn(ir.ForInStatement node); 312 JumpTarget getJumpTargetForForIn(ir.ForInStatement node);
313 313
314 /// Returns the [JumpTarget] defined by the while statement [node] or `null` 314 /// Returns the [JumpTarget] defined by the while statement [node] or `null`
315 /// if [node] is not a jump target. 315 /// if [node] is not a jump target.
316 JumpTarget getJumpTargetForWhile(ir.WhileStatement node); 316 JumpTarget getJumpTargetForWhile(ir.WhileStatement node);
317 317
318 /// Returns the [LoopClosureScope] for the loop [node] in [closureClassMaps]. 318 /// Returns the [CapturedLoopScope] for the loop [node] in
319 LoopClosureScope getLoopClosureScope( 319 /// [closureClassMaps].
320 CapturedLoopScope getCapturedLoopScope(
320 ClosureDataLookup closureLookup, ir.TreeNode node); 321 ClosureDataLookup closureLookup, ir.TreeNode node);
321 } 322 }
322 323
323 /// Comparator for the canonical order or named arguments. 324 /// Comparator for the canonical order or named arguments.
324 // TODO(johnniwinther): Remove this when named parameters are sorted in dill. 325 // TODO(johnniwinther): Remove this when named parameters are sorted in dill.
325 int namedOrdering(ir.VariableDeclaration a, ir.VariableDeclaration b) { 326 int namedOrdering(ir.VariableDeclaration a, ir.VariableDeclaration b) {
326 return a.name.compareTo(b.name); 327 return a.name.compareTo(b.name);
327 } 328 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_model/locals.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698