| Index: pkg/analyzer/lib/src/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
|
| index 3e0b4fb7d26992a58db8776ad48a1acb19c76bd5..5d75d49764cf9da76540f31f80d51e8acb1b7175 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -2228,10 +2228,10 @@ class ComputeLibraryCycleTask extends SourceBasedAnalysisTask {
|
| * given [target].
|
| */
|
| static Map<String, TaskInput> buildInputs(AnalysisTarget target) {
|
| - LibrarySpecificUnit unit = target;
|
| + Source librarySource = target;
|
| return <String, TaskInput>{
|
| - LIBRARY_ELEMENT_INPUT: LIBRARY_ELEMENT2.of(unit.library),
|
| - 'resolveReachableLibraries': READY_LIBRARY_ELEMENT2.of(unit.library),
|
| + LIBRARY_ELEMENT_INPUT: LIBRARY_ELEMENT2.of(librarySource),
|
| + 'resolveReachableLibraries': READY_LIBRARY_ELEMENT2.of(librarySource),
|
| };
|
| }
|
|
|
| @@ -3294,14 +3294,14 @@ class InferInstanceMembersInUnitTask extends SourceBasedAnalysisTask {
|
|
|
| // Require that field re-resolution be complete for all units in the
|
| // current library cycle.
|
| - 'orderLibraryCycleTasks': LIBRARY_CYCLE_UNITS.of(unit).toList(
|
| + 'orderLibraryCycleTasks': LIBRARY_CYCLE_UNITS.of(unit.library).toList(
|
| (CompilationUnitElement unit) => CREATED_RESOLVED_UNIT10.of(
|
| new LibrarySpecificUnit(
|
| (unit as CompilationUnitElementImpl).librarySource,
|
| unit.source))),
|
| // Require that full inference be complete for all dependencies of the
|
| // current library cycle.
|
| - 'orderLibraryCycles': LIBRARY_CYCLE_DEPENDENCIES.of(unit).toList(
|
| + 'orderLibraryCycles': LIBRARY_CYCLE_DEPENDENCIES.of(unit.library).toList(
|
| (CompilationUnitElement unit) => CREATED_RESOLVED_UNIT11.of(
|
| new LibrarySpecificUnit(
|
| (unit as CompilationUnitElementImpl).librarySource,
|
| @@ -3573,7 +3573,7 @@ class InferStaticVariableTypeTask extends InferStaticVariableTask {
|
|
|
| // Require that full inference be complete for all dependencies of the
|
| // current library cycle.
|
| - 'orderLibraryCycles': LIBRARY_CYCLE_DEPENDENCIES.of(unit).toList(
|
| + 'orderLibraryCycles': LIBRARY_CYCLE_DEPENDENCIES.of(unit.library).toList(
|
| (CompilationUnitElement unit) => CREATED_RESOLVED_UNIT11.of(
|
| new LibrarySpecificUnit(
|
| (unit as CompilationUnitElementImpl).librarySource,
|
| @@ -4074,7 +4074,7 @@ class PartiallyResolveUnitReferencesTask extends SourceBasedAnalysisTask {
|
|
|
| // Require that full inference be complete for all dependencies of the
|
| // current library cycle.
|
| - 'orderLibraryCycles': LIBRARY_CYCLE_DEPENDENCIES.of(unit).toList(
|
| + 'orderLibraryCycles': LIBRARY_CYCLE_DEPENDENCIES.of(unit.library).toList(
|
| (CompilationUnitElement unit) => CREATED_RESOLVED_UNIT11.of(
|
| new LibrarySpecificUnit(
|
| (unit as CompilationUnitElementImpl).librarySource,
|
| @@ -5071,14 +5071,14 @@ class ResolveInstanceFieldsInUnitTask extends SourceBasedAnalysisTask {
|
|
|
| // Require that static variable inference be complete for all units in
|
| // the current library cycle.
|
| - 'orderLibraryCycleTasks': LIBRARY_CYCLE_UNITS.of(unit).toList(
|
| + 'orderLibraryCycleTasks': LIBRARY_CYCLE_UNITS.of(unit.library).toList(
|
| (CompilationUnitElement unit) => CREATED_RESOLVED_UNIT9.of(
|
| new LibrarySpecificUnit(
|
| (unit as CompilationUnitElementImpl).librarySource,
|
| unit.source))),
|
| // Require that full inference be complete for all dependencies of the
|
| // current library cycle.
|
| - 'orderLibraryCycles': LIBRARY_CYCLE_DEPENDENCIES.of(unit).toList(
|
| + 'orderLibraryCycles': LIBRARY_CYCLE_DEPENDENCIES.of(unit.library).toList(
|
| (CompilationUnitElement unit) => CREATED_RESOLVED_UNIT11.of(
|
| new LibrarySpecificUnit(
|
| (unit as CompilationUnitElementImpl).librarySource,
|
| @@ -5555,7 +5555,7 @@ class ResolveUnitTask extends SourceBasedAnalysisTask {
|
|
|
| // Require that inference be complete for all units in the
|
| // current library cycle.
|
| - 'orderLibraryCycleTasks': LIBRARY_CYCLE_UNITS.of(unit).toList(
|
| + 'orderLibraryCycleTasks': LIBRARY_CYCLE_UNITS.of(unit.library).toList(
|
| (CompilationUnitElement unit) => CREATED_RESOLVED_UNIT11.of(
|
| new LibrarySpecificUnit(
|
| (unit as CompilationUnitElementImpl).librarySource,
|
|
|