Index: pkg/analyzer/lib/src/context/context.dart |
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart |
index 51e2c478867e7dac27e0caa7df38bac394dd99f0..ff230895e607973ecc9104a365a87d0751a541cc 100644 |
--- a/pkg/analyzer/lib/src/context/context.dart |
+++ b/pkg/analyzer/lib/src/context/context.dart |
@@ -1871,17 +1871,9 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
unitEntry.setValueIncremental( |
COMPILATION_UNIT_CONSTANTS, builder.unitConstants, false); |
DartDelta dartDelta = new DartDelta(source); |
- dartDelta.hasDirectiveChange = unitDelta.hasDirectiveChange; |
unitDelta.addedDeclarations.forEach(dartDelta.elementChanged); |
unitDelta.removedDeclarations.forEach(dartDelta.elementChanged); |
unitDelta.classDeltas.values.forEach(dartDelta.classChanged); |
- // Add other names in the library that are changed transitively. |
- { |
- ReferencedNames referencedNames = new ReferencedNames(source); |
- new ReferencedNamesBuilder(referencedNames).build(oldUnit); |
- dartDelta.addChangedElements(referencedNames, librarySource); |
- } |
- // Invalidate using the prepared DartDelta. |
entry.setState(CONTENT, CacheState.INVALID, delta: dartDelta); |
return; |
} |