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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2054453002: Make possible to don't track cache dependencies. (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/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 6d41c4fb044afd87ebad885f5740ee7c495735ed..b3dad6062fcc1a0de41a06aa58a4e6ae325dbfd3 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1144,6 +1144,14 @@ abstract class AnalysisOptions {
bool get strongMode;
/**
+ * Return `true` if dependencies between computed results should be tracked
+ * by analysis cache. This option should only be set to `false` if analysis
+ * is performed in batch mode, so that none of the input is ever changed
Brian Wilkerson 2016/06/08 17:48:03 "batch mode" has a special meaning for dartanalyze
+ * during the life time of the context.
+ */
+ bool get trackCacheDependencies;
+
+ /**
* Return an integer encoding of the values of the options that need to be the
* same across all of the contexts associated with partitions that are to be
* shared by a single analysis context.
@@ -1283,6 +1291,9 @@ class AnalysisOptionsImpl implements AnalysisOptions {
// TODO(leafp): replace this with something more general
bool strongModeHints = false;
+ @override
+ bool trackCacheDependencies = true;
+
/**
* Initialize a newly created set of analysis options to have their default
* values.
@@ -1315,6 +1326,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
if (options is AnalysisOptionsImpl) {
strongModeHints = options.strongModeHints;
}
+ trackCacheDependencies = options.trackCacheDependencies;
}
bool get analyzeFunctionBodies {
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698