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

Unified Diff: pkg/analyzer/test/src/task/incremental_element_builder_test.dart

Issue 2091883002: Add '--finer-grained-invalidation' option to Analysis Server. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « pkg/analyzer/test/src/context/context_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/incremental_element_builder_test.dart
diff --git a/pkg/analyzer/test/src/task/incremental_element_builder_test.dart b/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
index 8b3bb5d542041fcb1c4cc922998d7b9fa1bfefc1..c4b2955269cf354fc991223f4eb2f615ba1ee4c8 100644
--- a/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
+++ b/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
@@ -1600,7 +1600,8 @@ main() {
void _buildNewUnit(String newCode) {
this.newCode = newCode;
- AnalysisEngine.instance.limitInvalidationInTaskModel = false;
+ AnalysisOptionsImpl analysisOptions = context.analysisOptions;
+ analysisOptions.finerGrainedInvalidation = false;
try {
context.setContents(source, newCode);
newUnit = context.parseCompilationUnit(source);
@@ -1622,7 +1623,7 @@ main() {
expect(newUnitFull, isNot(same(newUnit)));
new _BuiltElementsValidator().isEqualNodes(newUnitFull, newUnit);
} finally {
- AnalysisEngine.instance.limitInvalidationInTaskModel = true;
+ analysisOptions.finerGrainedInvalidation = true;
}
}
« no previous file with comments | « pkg/analyzer/test/src/context/context_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698