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

Side by Side Diff: pkg/compiler/lib/src/ssa/kernel_ast_adapter.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
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 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 '../compiler.dart'; 9 import '../compiler.dart';
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 assert(constructorBody != null); 353 assert(constructorBody != null);
354 return constructorBody; 354 return constructorBody;
355 } 355 }
356 356
357 @override 357 @override
358 Spannable getSpannable(MemberEntity member, ir.Node node) { 358 Spannable getSpannable(MemberEntity member, ir.Node node) {
359 return getNode(node); 359 return getNode(node);
360 } 360 }
361 361
362 @override 362 @override
363 LoopClosureScope getLoopClosureScope( 363 CapturedLoopScope getCapturedLoopScope(
364 ClosureDataLookup closureLookup, ir.TreeNode node) { 364 ClosureDataLookup closureLookup, ir.TreeNode node) {
365 return closureLookup.getLoopClosureScope(getNode(node)); 365 return closureLookup.getCapturedLoopScope(getNode(node));
366 } 366 }
367 } 367 }
368 368
369 /// Visitor that converts kernel dart types into [ResolutionDartType]. 369 /// Visitor that converts kernel dart types into [ResolutionDartType].
370 class DartTypeConverter extends ir.DartTypeVisitor<ResolutionDartType> { 370 class DartTypeConverter extends ir.DartTypeVisitor<ResolutionDartType> {
371 final KernelAstAdapter astAdapter; 371 final KernelAstAdapter astAdapter;
372 bool topLevel = true; 372 bool topLevel = true;
373 373
374 DartTypeConverter(this.astAdapter); 374 DartTypeConverter(this.astAdapter);
375 375
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { 686 TypeMask selectorTypeOf(Selector selector, TypeMask mask) {
687 return TypeMaskFactory.inferredTypeForSelector( 687 return TypeMaskFactory.inferredTypeForSelector(
688 selector, mask, _globalInferenceResults); 688 selector, mask, _globalInferenceResults);
689 } 689 }
690 690
691 TypeMask typeFromNativeBehavior( 691 TypeMask typeFromNativeBehavior(
692 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { 692 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) {
693 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); 693 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld);
694 } 694 }
695 } 695 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | pkg/compiler/lib/src/ssa/locals_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698