| 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 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2373 typeElement.constructors = <ConstructorElement>[ | 2373 typeElement.constructors = <ConstructorElement>[ |
| 2374 constructorOne, | 2374 constructorOne, |
| 2375 constructorTwo | 2375 constructorTwo |
| 2376 ]; | 2376 ]; |
| 2377 InterfaceTypeImpl type = new InterfaceTypeImpl(typeElement); | 2377 InterfaceTypeImpl type = new InterfaceTypeImpl(typeElement); |
| 2378 expect(type.constructors, hasLength(2)); | 2378 expect(type.constructors, hasLength(2)); |
| 2379 } | 2379 } |
| 2380 | 2380 |
| 2381 void test_getConstructors_empty() { | 2381 void test_getConstructors_empty() { |
| 2382 ClassElementImpl typeElement = ElementFactory.classElement2("A"); | 2382 ClassElementImpl typeElement = ElementFactory.classElement2("A"); |
| 2383 typeElement.constructors = ConstructorElement.EMPTY_LIST; |
| 2383 InterfaceTypeImpl type = new InterfaceTypeImpl(typeElement); | 2384 InterfaceTypeImpl type = new InterfaceTypeImpl(typeElement); |
| 2384 expect(type.constructors, isEmpty); | 2385 expect(type.constructors, isEmpty); |
| 2385 } | 2386 } |
| 2386 | 2387 |
| 2387 void test_getElement() { | 2388 void test_getElement() { |
| 2388 ClassElementImpl typeElement = ElementFactory.classElement2("A"); | 2389 ClassElementImpl typeElement = ElementFactory.classElement2("A"); |
| 2389 InterfaceTypeImpl type = new InterfaceTypeImpl(typeElement); | 2390 InterfaceTypeImpl type = new InterfaceTypeImpl(typeElement); |
| 2390 expect(type.element, typeElement); | 2391 expect(type.element, typeElement); |
| 2391 } | 2392 } |
| 2392 | 2393 |
| (...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4237 } | 4238 } |
| 4238 | 4239 |
| 4239 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction | 4240 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction |
| 4240 extends InterfaceTypeImpl { | 4241 extends InterfaceTypeImpl { |
| 4241 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) | 4242 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) |
| 4242 : super(arg0); | 4243 : super(arg0); |
| 4243 | 4244 |
| 4244 @override | 4245 @override |
| 4245 bool get isDartCoreFunction => true; | 4246 bool get isDartCoreFunction => true; |
| 4246 } | 4247 } |
| OLD | NEW |