| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.element_test; | 8 library engine.element_test; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2626 ClassElement classA = ElementFactory.classElement2("A", ["E"]); | 2626 ClassElement classA = ElementFactory.classElement2("A", ["E"]); |
| 2627 ClassElement classB = ElementFactory.classElement2("B", ["F", "G"]); | 2627 ClassElement classB = ElementFactory.classElement2("B", ["F", "G"]); |
| 2628 InterfaceTypeImpl typeAF = new InterfaceTypeImpl.con1(classA); | 2628 InterfaceTypeImpl typeAF = new InterfaceTypeImpl.con1(classA); |
| 2629 typeAF.typeArguments = <DartType>[classB.typeParameters[0].type]; | 2629 typeAF.typeArguments = <DartType>[classB.typeParameters[0].type]; |
| 2630 InterfaceTypeImpl typeAG = new InterfaceTypeImpl.con1(classA); | 2630 InterfaceTypeImpl typeAG = new InterfaceTypeImpl.con1(classA); |
| 2631 typeAG.typeArguments = <DartType>[classB.typeParameters[1].type]; | 2631 typeAG.typeArguments = <DartType>[classB.typeParameters[1].type]; |
| 2632 expect(typeAG.isAssignableTo(typeAF), isFalse); | 2632 expect(typeAG.isAssignableTo(typeAF), isFalse); |
| 2633 } | 2633 } |
| 2634 | 2634 |
| 2635 void test_isAssignableTo_void() { | 2635 void test_isAssignableTo_void() { |
| 2636 InterfaceTypeImpl intType = _typeProvider.intType; |
| 2636 expect( | 2637 expect( |
| 2637 VoidTypeImpl.instance.isAssignableTo(_typeProvider.intType), isFalse); | 2638 VoidTypeImpl.instance.isAssignableTo(intType), isFalse); |
| 2638 } | 2639 } |
| 2639 | 2640 |
| 2640 void test_isDirectSupertypeOf_extends() { | 2641 void test_isDirectSupertypeOf_extends() { |
| 2641 ClassElement classA = ElementFactory.classElement2("A"); | 2642 ClassElement classA = ElementFactory.classElement2("A"); |
| 2642 ClassElement classB = ElementFactory.classElement("B", classA.type); | 2643 ClassElement classB = ElementFactory.classElement("B", classA.type); |
| 2643 InterfaceType typeA = classA.type; | 2644 InterfaceType typeA = classA.type; |
| 2644 InterfaceType typeB = classB.type; | 2645 InterfaceType typeB = classB.type; |
| 2645 expect(typeA.isDirectSupertypeOf(typeB), isTrue); | 2646 expect(typeA.isDirectSupertypeOf(typeB), isTrue); |
| 2646 } | 2647 } |
| 2647 | 2648 |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3787 } | 3788 } |
| 3788 | 3789 |
| 3789 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction | 3790 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction |
| 3790 extends InterfaceTypeImpl { | 3791 extends InterfaceTypeImpl { |
| 3791 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) | 3792 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) |
| 3792 : super.con1(arg0); | 3793 : super.con1(arg0); |
| 3793 | 3794 |
| 3794 @override | 3795 @override |
| 3795 bool get isDartCoreFunction => true; | 3796 bool get isDartCoreFunction => true; |
| 3796 } | 3797 } |
| OLD | NEW |