Index: pkg/analyzer/lib/src/task/dart_work_manager.dart |
diff --git a/pkg/analyzer/lib/src/task/dart_work_manager.dart b/pkg/analyzer/lib/src/task/dart_work_manager.dart |
index 4c36832329a06b7310e7c2a1f16c90bfd7253289..f3dd0b66dbbe034df1acb3da04bbd43f8a98b183 100644 |
--- a/pkg/analyzer/lib/src/task/dart_work_manager.dart |
+++ b/pkg/analyzer/lib/src/task/dart_work_manager.dart |
@@ -29,7 +29,6 @@ class DartWorkManager implements WorkManager { |
BUILD_DIRECTIVES_ERRORS, |
BUILD_LIBRARY_ERRORS, |
PARSE_ERRORS, |
- RESOLVE_DIRECTIVES_ERRORS, |
SCAN_ERRORS |
]; |
@@ -304,10 +303,10 @@ class DartWorkManager implements WorkManager { |
} |
} |
// Update parts in libraries. |
- { |
+ if (isDartLibrarySource) { |
+ Source library = target; |
List<Source> includedParts = outputs[INCLUDED_PARTS] as List<Source>; |
- if (includedParts != null && !includedParts.isEmpty) { |
- Source library = target; |
+ if (includedParts != null) { |
libraryPartsMap[library] = includedParts; |
for (Source part in includedParts) { |
List<Source> libraries = |
@@ -323,7 +322,7 @@ class DartWorkManager implements WorkManager { |
if (isDartSource) { |
bool shouldSetErrors = false; |
outputs.forEach((ResultDescriptor descriptor, value) { |
- if (descriptor == PARSED_UNIT1 && value != null) { |
+ if (descriptor == PARSED_UNIT && value != null) { |
context.getNotice(target).parsedDartUnit = value; |
shouldSetErrors = true; |
} |
@@ -426,7 +425,6 @@ class DartWorkManager implements WorkManager { |
if (entry != null) { |
// TODO(scheglov) we invalidate too much. |
// Would be nice to invalidate just URLs resolution. |
- entry.setState(PARSED_UNIT1, CacheState.INVALID); |
entry.setState(PARSED_UNIT, CacheState.INVALID); |
entry.setState(IMPORTED_LIBRARIES, CacheState.INVALID); |
entry.setState(EXPLICITLY_IMPORTED_LIBRARIES, CacheState.INVALID); |