| 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 3768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3779 _uA = UnionTypeImpl.union([_typeA]); | 3779 _uA = UnionTypeImpl.union([_typeA]); |
| 3780 _uB = UnionTypeImpl.union([_typeB]); | 3780 _uB = UnionTypeImpl.union([_typeB]); |
| 3781 _uAB = UnionTypeImpl.union([_typeA, _typeB]); | 3781 _uAB = UnionTypeImpl.union([_typeA, _typeB]); |
| 3782 _uBA = UnionTypeImpl.union([_typeB, _typeA]); | 3782 _uBA = UnionTypeImpl.union([_typeB, _typeA]); |
| 3783 _us = <DartType>[_uA, _uB, _uAB, _uBA]; | 3783 _us = <DartType>[_uA, _uB, _uAB, _uBA]; |
| 3784 } | 3784 } |
| 3785 | 3785 |
| 3786 void test_emptyUnionsNotAllowed() { | 3786 void test_emptyUnionsNotAllowed() { |
| 3787 try { | 3787 try { |
| 3788 UnionTypeImpl.union([]); | 3788 UnionTypeImpl.union([]); |
| 3789 } on IllegalArgumentException catch (e) { | 3789 } on IllegalArgumentException { |
| 3790 return; | 3790 return; |
| 3791 } | 3791 } |
| 3792 fail("Expected illegal argument exception."); | 3792 fail("Expected illegal argument exception."); |
| 3793 } | 3793 } |
| 3794 | 3794 |
| 3795 void test_equality_beingASubtypeOfAnElementIsNotSufficient() { | 3795 void test_equality_beingASubtypeOfAnElementIsNotSufficient() { |
| 3796 // Non-equal if some elements are different | 3796 // Non-equal if some elements are different |
| 3797 expect(_uAB == _uA, isFalse); | 3797 expect(_uAB == _uA, isFalse); |
| 3798 } | 3798 } |
| 3799 | 3799 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3985 } | 3985 } |
| 3986 | 3986 |
| 3987 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction | 3987 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction |
| 3988 extends InterfaceTypeImpl { | 3988 extends InterfaceTypeImpl { |
| 3989 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) | 3989 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) |
| 3990 : super.con1(arg0); | 3990 : super.con1(arg0); |
| 3991 | 3991 |
| 3992 @override | 3992 @override |
| 3993 bool get isDartCoreFunction => true; | 3993 bool get isDartCoreFunction => true; |
| 3994 } | 3994 } |
| OLD | NEW |