| 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 3545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3556 expect(prefixes[0], same(prefixB)); | 3556 expect(prefixes[0], same(prefixB)); |
| 3557 expect(prefixes[1], same(prefixA)); | 3557 expect(prefixes[1], same(prefixA)); |
| 3558 } | 3558 } |
| 3559 } | 3559 } |
| 3560 | 3560 |
| 3561 void test_getUnits() { | 3561 void test_getUnits() { |
| 3562 AnalysisContext context = createAnalysisContext(); | 3562 AnalysisContext context = createAnalysisContext(); |
| 3563 LibraryElementImpl library = ElementFactory.library(context, "test"); | 3563 LibraryElementImpl library = ElementFactory.library(context, "test"); |
| 3564 CompilationUnitElement unitLib = library.definingCompilationUnit; | 3564 CompilationUnitElement unitLib = library.definingCompilationUnit; |
| 3565 CompilationUnitElementImpl unitA = | 3565 CompilationUnitElementImpl unitA = |
| 3566 ElementFactory.compilationUnit("unit_a.dart"); | 3566 ElementFactory.compilationUnit("unit_a.dart", unitLib.source); |
| 3567 CompilationUnitElementImpl unitB = | 3567 CompilationUnitElementImpl unitB = |
| 3568 ElementFactory.compilationUnit("unit_b.dart"); | 3568 ElementFactory.compilationUnit("unit_b.dart", unitLib.source); |
| 3569 library.parts = <CompilationUnitElement>[unitA, unitB]; | 3569 library.parts = <CompilationUnitElement>[unitA, unitB]; |
| 3570 expect(library.units, | 3570 expect(library.units, |
| 3571 unorderedEquals(<CompilationUnitElement>[unitLib, unitA, unitB])); | 3571 unorderedEquals(<CompilationUnitElement>[unitLib, unitA, unitB])); |
| 3572 } | 3572 } |
| 3573 | 3573 |
| 3574 void test_getVisibleLibraries_cycle() { | 3574 void test_getVisibleLibraries_cycle() { |
| 3575 AnalysisContext context = createAnalysisContext(); | 3575 AnalysisContext context = createAnalysisContext(); |
| 3576 LibraryElementImpl library = ElementFactory.library(context, "app"); | 3576 LibraryElementImpl library = ElementFactory.library(context, "app"); |
| 3577 LibraryElementImpl libraryA = ElementFactory.library(context, "A"); | 3577 LibraryElementImpl libraryA = ElementFactory.library(context, "A"); |
| 3578 libraryA.imports = | 3578 libraryA.imports = |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3960 } | 3960 } |
| 3961 | 3961 |
| 3962 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction | 3962 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction |
| 3963 extends InterfaceTypeImpl { | 3963 extends InterfaceTypeImpl { |
| 3964 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) | 3964 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) |
| 3965 : super.con1(arg0); | 3965 : super.con1(arg0); |
| 3966 | 3966 |
| 3967 @override | 3967 @override |
| 3968 bool get isDartCoreFunction => true; | 3968 bool get isDartCoreFunction => true; |
| 3969 } | 3969 } |
| OLD | NEW |