| 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 10af40d31c44643f2c6f19c94f0dcdca91b82dd5..e0d8155afa08f6519739f633e500e49bf50ff5d9 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -308,17 +308,6 @@ final ResultDescriptor<LibraryElement> LIBRARY_ELEMENT7 =
|
| cachingPolicy: ELEMENT_CACHING_POLICY);
|
|
|
| /**
|
| - * The partial [LibraryElement] associated with a library.
|
| - *
|
| - * The same as a [LIBRARY_ELEMENT7].
|
| - *
|
| - * The result is only available for [Source]s representing a library.
|
| - */
|
| -final ResultDescriptor<LibraryElement> LIBRARY_ELEMENT8 =
|
| - new ResultDescriptor<LibraryElement>('LIBRARY_ELEMENT8', null,
|
| - cachingPolicy: ELEMENT_CACHING_POLICY);
|
| -
|
| -/**
|
| * The flag specifying whether all analysis errors are computed in a specific
|
| * library.
|
| *
|
| @@ -2428,7 +2417,7 @@ class EvaluateUnitConstantsTask extends SourceBasedAnalysisTask {
|
| static Map<String, TaskInput> buildInputs(AnalysisTarget target) {
|
| LibrarySpecificUnit unit = target;
|
| return <String, TaskInput>{
|
| - 'libraryElement': LIBRARY_ELEMENT8.of(unit.library),
|
| + 'libraryElement': LIBRARY_ELEMENT.of(unit.library),
|
| UNIT_INPUT: RESOLVED_UNIT10.of(unit),
|
| CONSTANT_VALUES:
|
| COMPILATION_UNIT_CONSTANTS.of(unit).toListOf(CONSTANT_VALUE)
|
| @@ -3238,8 +3227,7 @@ class LibraryErrorsReadyTask extends SourceBasedAnalysisTask {
|
| static Map<String, TaskInput> buildInputs(AnalysisTarget target) {
|
| Source source = target;
|
| return <String, TaskInput>{
|
| - 'allErrors': UNITS.of(source).toListOf(DART_ERRORS),
|
| - 'libraryElement': LIBRARY_ELEMENT.of(source)
|
| + 'allErrors': UNITS.of(source).toListOf(DART_ERRORS)
|
| };
|
| }
|
|
|
| @@ -4470,11 +4458,11 @@ class ResolveInstanceFieldsInUnitTask extends SourceBasedAnalysisTask {
|
|
|
| /**
|
| * A task that finishes resolution by requesting [RESOLVED_UNIT10] for every
|
| - * unit in the libraries closure and produces [LIBRARY_ELEMENT8].
|
| + * unit in the libraries closure and produces [LIBRARY_ELEMENT].
|
| */
|
| class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask {
|
| /**
|
| - * The name of the [LIBRARY_ELEMENT7] input.
|
| + * The name of the [LIBRARY_ELEMENT5] input.
|
| */
|
| static const String LIBRARY_INPUT = 'LIBRARY_INPUT';
|
|
|
| @@ -4490,7 +4478,7 @@ class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask {
|
| 'ResolveLibraryReferencesTask',
|
| createTask,
|
| buildInputs,
|
| - <ResultDescriptor>[LIBRARY_ELEMENT8, REFERENCED_NAMES]);
|
| + <ResultDescriptor>[LIBRARY_ELEMENT, REFERENCED_NAMES]);
|
|
|
| ResolveLibraryReferencesTask(
|
| InternalAnalysisContext context, AnalysisTarget target)
|
| @@ -4514,7 +4502,7 @@ class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask {
|
| //
|
| // Record outputs.
|
| //
|
| - outputs[LIBRARY_ELEMENT8] = library;
|
| + outputs[LIBRARY_ELEMENT] = library;
|
| outputs[REFERENCED_NAMES] = referencedNames;
|
| }
|
|
|
| @@ -4526,7 +4514,7 @@ class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask {
|
| static Map<String, TaskInput> buildInputs(AnalysisTarget target) {
|
| Source source = target;
|
| return <String, TaskInput>{
|
| - LIBRARY_INPUT: LIBRARY_ELEMENT7.of(source),
|
| + LIBRARY_INPUT: LIBRARY_ELEMENT5.of(source),
|
| UNITS_INPUT: LIBRARY_SPECIFIC_UNITS.of(source).toListOf(RESOLVED_UNIT10),
|
| 'thisLibraryClosureIsReady': READY_RESOLVED_UNIT10.of(source),
|
| };
|
| @@ -4543,71 +4531,6 @@ class ResolveLibraryReferencesTask extends SourceBasedAnalysisTask {
|
| }
|
|
|
| /**
|
| - * A task that finishes resolution by requesting [RESOLVED_UNIT11] for every
|
| - * unit in the libraries closure and produces [LIBRARY_ELEMENT].
|
| - */
|
| -class ResolveLibraryTask extends SourceBasedAnalysisTask {
|
| - /**
|
| - * The name of the [LIBRARY_ELEMENT8] input.
|
| - */
|
| - static const String LIBRARY_INPUT = 'LIBRARY_INPUT';
|
| -
|
| - /**
|
| - * The name of the list of [RESOLVED_UNIT11] input.
|
| - */
|
| - static const String UNITS_INPUT = 'UNITS_INPUT';
|
| -
|
| - /**
|
| - * The task descriptor describing this kind of task.
|
| - */
|
| - static final TaskDescriptor DESCRIPTOR = new TaskDescriptor(
|
| - 'ResolveLibraryTask',
|
| - createTask,
|
| - buildInputs,
|
| - <ResultDescriptor>[LIBRARY_ELEMENT]);
|
| -
|
| - ResolveLibraryTask(InternalAnalysisContext context, AnalysisTarget target)
|
| - : super(context, target);
|
| -
|
| - @override
|
| - TaskDescriptor get descriptor => DESCRIPTOR;
|
| -
|
| - @override
|
| - void internalPerform() {
|
| - //
|
| - // Prepare inputs.
|
| - //
|
| - LibraryElement library = getRequiredInput(LIBRARY_INPUT);
|
| - //
|
| - // Record outputs.
|
| - //
|
| - outputs[LIBRARY_ELEMENT] = library;
|
| - }
|
| -
|
| -/**
|
| - * Return a map from the names of the inputs of this kind of task to the task
|
| - * input descriptors describing those inputs for a task with the
|
| - * given [target].
|
| - */
|
| - static Map<String, TaskInput> buildInputs(AnalysisTarget target) {
|
| - Source source = target;
|
| - return <String, TaskInput>{
|
| - LIBRARY_INPUT: LIBRARY_ELEMENT8.of(source),
|
| - 'thisLibraryClosureIsReady': READY_RESOLVED_UNIT.of(source),
|
| - };
|
| - }
|
| -
|
| -/**
|
| - * Create a [ResolveLibraryTask] based on the given [target] in the given
|
| - * [context].
|
| - */
|
| - static ResolveLibraryTask createTask(
|
| - AnalysisContext context, AnalysisTarget target) {
|
| - return new ResolveLibraryTask(context, target);
|
| - }
|
| -}
|
| -
|
| -/**
|
| * An artificial task that does nothing except to force type names resolution
|
| * for the defining and part units of a library.
|
| */
|
|
|