OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |