| 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.resolver_test; | 8 library engine.resolver_test; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 8472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8483 cycle.add(libA); | 8483 cycle.add(libA); |
| 8484 cycle.add(libB); | 8484 cycle.add(libB); |
| 8485 LibraryElement library = _resolver.resolveLibrary(sourceA, cycle); | 8485 LibraryElement library = _resolver.resolveLibrary(sourceA, cycle); |
| 8486 List<LibraryElement> importedLibraries = library.importedLibraries; | 8486 List<LibraryElement> importedLibraries = library.importedLibraries; |
| 8487 assertNamedElements(importedLibraries, ["dart.core", "libB"]); | 8487 assertNamedElements(importedLibraries, ["dart.core", "libB"]); |
| 8488 } | 8488 } |
| 8489 | 8489 |
| 8490 ResolvableLibrary _createResolvableLibrary(Source source) { | 8490 ResolvableLibrary _createResolvableLibrary(Source source) { |
| 8491 CompilationUnit unit = analysisContext2.parseCompilationUnit(source); | 8491 CompilationUnit unit = analysisContext2.parseCompilationUnit(source); |
| 8492 ResolvableLibrary resolvableLibrary = new ResolvableLibrary(source); | 8492 ResolvableLibrary resolvableLibrary = new ResolvableLibrary(source); |
| 8493 resolvableLibrary.resolvableCompilationUnits = <ResolvableCompilationUnit> [
new ResolvableCompilationUnit.con2(analysisContext2.getModificationStamp(source)
, unit, source)]; | 8493 resolvableLibrary.resolvableCompilationUnits = <ResolvableCompilationUnit>[ |
| 8494 new ResolvableCompilationUnit(source, unit) |
| 8495 ]; |
| 8494 return resolvableLibrary; | 8496 return resolvableLibrary; |
| 8495 } | 8497 } |
| 8496 } | 8498 } |
| 8497 | 8499 |
| 8498 class LibraryResolverTest extends ResolverTestCase { | 8500 class LibraryResolverTest extends ResolverTestCase { |
| 8499 LibraryResolver _resolver; | 8501 LibraryResolver _resolver; |
| 8500 | 8502 |
| 8501 @override | 8503 @override |
| 8502 void setUp() { | 8504 void setUp() { |
| 8503 super.setUp(); | 8505 super.setUp(); |
| (...skipping 14837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23341 runReflectiveTests(HintCodeTest); | 23343 runReflectiveTests(HintCodeTest); |
| 23342 runReflectiveTests(MemberMapTest); | 23344 runReflectiveTests(MemberMapTest); |
| 23343 runReflectiveTests(NonErrorResolverTest); | 23345 runReflectiveTests(NonErrorResolverTest); |
| 23344 runReflectiveTests(NonHintCodeTest); | 23346 runReflectiveTests(NonHintCodeTest); |
| 23345 runReflectiveTests(SimpleResolverTest); | 23347 runReflectiveTests(SimpleResolverTest); |
| 23346 runReflectiveTests(StaticTypeWarningCodeTest); | 23348 runReflectiveTests(StaticTypeWarningCodeTest); |
| 23347 runReflectiveTests(StaticWarningCodeTest); | 23349 runReflectiveTests(StaticWarningCodeTest); |
| 23348 runReflectiveTests(StrictModeTest); | 23350 runReflectiveTests(StrictModeTest); |
| 23349 runReflectiveTests(TypePropagationTest); | 23351 runReflectiveTests(TypePropagationTest); |
| 23350 } | 23352 } |
| OLD | NEW |