Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1191)

Side by Side Diff: pkg/analyzer/test/generated/element_test.dart

Issue 1215053003: Compute mixin application constructors in the ClassElement.constructors getter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/compile_time_error_code_test.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698