| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 InterfaceType getInterfaceType(ir.InterfaceType type) => getDartType(type); | 368 InterfaceType getInterfaceType(ir.InterfaceType type) => getDartType(type); |
| 369 | 369 |
| 370 InterfaceType getThisType(ClassElement cls) => cls.thisType; | 370 InterfaceType getThisType(ClassElement cls) => cls.thisType; |
| 371 | 371 |
| 372 InterfaceType createInterfaceType( | 372 InterfaceType createInterfaceType( |
| 373 ir.Class cls, List<ir.DartType> typeArguments) { | 373 ir.Class cls, List<ir.DartType> typeArguments) { |
| 374 return new ResolutionInterfaceType( | 374 return new ResolutionInterfaceType( |
| 375 getClass(cls), getDartTypes(typeArguments)); | 375 getClass(cls), getDartTypes(typeArguments)); |
| 376 } | 376 } |
| 377 | 377 |
| 378 @override |
| 379 TypedefType getTypedefType(ir.Typedef node) { |
| 380 throw new UnsupportedError('KernelAstAdapter.getTypedefType'); |
| 381 } |
| 382 |
| 378 FunctionEntity getConstructorBody(ir.Constructor constructor) { | 383 FunctionEntity getConstructorBody(ir.Constructor constructor) { |
| 379 AstElement element = getElement(constructor); | 384 AstElement element = getElement(constructor); |
| 380 MemberEntity constructorBody = | 385 MemberEntity constructorBody = |
| 381 ConstructorBodyElementX.createFromResolvedAst(element.resolvedAst); | 386 ConstructorBodyElementX.createFromResolvedAst(element.resolvedAst); |
| 382 assert(constructorBody != null); | 387 assert(constructorBody != null); |
| 383 return constructorBody; | 388 return constructorBody; |
| 384 } | 389 } |
| 385 | 390 |
| 386 @override | 391 @override |
| 387 Spannable getSpannable(MemberEntity member, ir.Node node) { | 392 Spannable getSpannable(MemberEntity member, ir.Node node) { |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { | 720 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { |
| 716 return TypeMaskFactory.inferredTypeForSelector( | 721 return TypeMaskFactory.inferredTypeForSelector( |
| 717 selector, mask, _globalInferenceResults); | 722 selector, mask, _globalInferenceResults); |
| 718 } | 723 } |
| 719 | 724 |
| 720 TypeMask typeFromNativeBehavior( | 725 TypeMask typeFromNativeBehavior( |
| 721 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { | 726 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { |
| 722 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); | 727 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); |
| 723 } | 728 } |
| 724 } | 729 } |
| OLD | NEW |