Index: pkg/analyzer/lib/src/task/driver.dart |
diff --git a/pkg/analyzer/lib/src/task/driver.dart b/pkg/analyzer/lib/src/task/driver.dart |
index ab8ab9dc706e98f47490ba4994842eee9b4446d8..1eaaad1e64c41350dd309548608d2574fa3c7dde 100644 |
--- a/pkg/analyzer/lib/src/task/driver.dart |
+++ b/pkg/analyzer/lib/src/task/driver.dart |
@@ -366,7 +366,9 @@ class WorkItem { |
while (builder != null) { |
AnalysisTarget inputTarget = builder.currentTarget; |
ResultDescriptor inputResult = builder.currentResult; |
- inputTargetedResults.add(new TargetedResult(inputTarget, inputResult)); |
+ if (inputTarget is! AnalysisContextTarget) { |
+ inputTargetedResults.add(new TargetedResult(inputTarget, inputResult)); |
+ } |
CacheEntry inputEntry = context.getCacheEntry(inputTarget); |
CacheState inputState = inputEntry.getState(inputResult); |
if (inputState == CacheState.ERROR) { |