Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: pkg/analyzer/lib/src/context/context.dart

Issue 2155923002: Update COMPILATION_UNIT_CONSTANTS after incremental elements building. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 858fd0636a60235d799a0f331834c973c7a6e256..4993e19fefe368dfcd0452113222a3da572cd92c 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -1864,6 +1864,15 @@ class AnalysisContextImpl implements InternalAnalysisContext {
builder.build();
CompilationUnitElementDelta unitDelta = builder.unitDelta;
if (!unitDelta.hasDirectiveChange) {
+ // Update constants.
+ {
+ ConstantFinder finder =
+ new ConstantFinder(this, source, librarySource);
+ oldUnit.accept(finder);
+ unitEntry.setValueIncremental(COMPILATION_UNIT_CONSTANTS,
+ finder.constantsToCompute.toList(), false);
+ }
+ // Build DartDelta.
DartDelta dartDelta = new DartDelta(source);
dartDelta.hasDirectiveChange = unitDelta.hasDirectiveChange;
unitDelta.addedDeclarations.forEach(dartDelta.elementChanged);
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698