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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 assert(constructorBody != null); | 337 assert(constructorBody != null); |
338 return constructorBody; | 338 return constructorBody; |
339 } | 339 } |
340 | 340 |
341 @override | 341 @override |
342 Spannable getSpannable(MemberEntity member, ir.Node node) { | 342 Spannable getSpannable(MemberEntity member, ir.Node node) { |
343 return getNode(node); | 343 return getNode(node); |
344 } | 344 } |
345 | 345 |
346 @override | 346 @override |
347 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop( | 347 LoopClosureScope getLoopClosureScope( |
348 ClosureDataLookup closureLookup, ir.TreeNode node) { | 348 ClosureDataLookup closureLookup, ir.TreeNode node) { |
349 return closureLookup.getClosureRepresentationInfoForLoop(getNode(node)); | 349 return closureLookup.getLoopClosureScope(getNode(node)); |
350 } | 350 } |
351 } | 351 } |
352 | 352 |
353 /// Visitor that converts kernel dart types into [ResolutionDartType]. | 353 /// Visitor that converts kernel dart types into [ResolutionDartType]. |
354 class DartTypeConverter extends ir.DartTypeVisitor<ResolutionDartType> { | 354 class DartTypeConverter extends ir.DartTypeVisitor<ResolutionDartType> { |
355 final KernelAstAdapter astAdapter; | 355 final KernelAstAdapter astAdapter; |
356 bool topLevel = true; | 356 bool topLevel = true; |
357 | 357 |
358 DartTypeConverter(this.astAdapter); | 358 DartTypeConverter(this.astAdapter); |
359 | 359 |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { | 670 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { |
671 return TypeMaskFactory.inferredTypeForSelector( | 671 return TypeMaskFactory.inferredTypeForSelector( |
672 selector, mask, _globalInferenceResults); | 672 selector, mask, _globalInferenceResults); |
673 } | 673 } |
674 | 674 |
675 TypeMask typeFromNativeBehavior( | 675 TypeMask typeFromNativeBehavior( |
676 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { | 676 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { |
677 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); | 677 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); |
678 } | 678 } |
679 } | 679 } |
OLD | NEW |