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

Unified Diff: pkg/analyzer/test/src/dart/analysis/base.dart

Issue 2818623003: Add a flag for caching all analysis results in the driver. (Closed)
Patch Set: Created 3 years, 8 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
Index: pkg/analyzer/test/src/dart/analysis/base.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/base.dart b/pkg/analyzer/test/src/dart/analysis/base.dart
index 601c2fe2b54cb9bc16c913c159a8f8dc0f5fe190..6270250b13c02c6bae2b0045fc21ab67e2059b9c 100644
--- a/pkg/analyzer/test/src/dart/analysis/base.dart
+++ b/pkg/analyzer/test/src/dart/analysis/base.dart
@@ -63,6 +63,8 @@ class BaseAnalysisDriverTest {
String testFile;
String testCode;
+ bool get disableChangesAndCacheAllResults => false;
+
void addTestFile(String content, {bool priority: false}) {
testCode = content;
provider.newFile(testFile, content);
@@ -124,7 +126,8 @@ class BaseAnalysisDriverTest {
], null, provider),
new AnalysisOptionsImpl()
..strongMode = true
- ..enableUriInPartOf = true);
+ ..enableUriInPartOf = true,
+ disableChangesAndCacheAllResults: disableChangesAndCacheAllResults);
scheduler.start();
scheduler.status.listen(allStatuses.add);
driver.results.listen(allResults.add);
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | pkg/analyzer/test/src/dart/analysis/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698