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

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

Issue 2050573003: Issue 26629. Detect cache inconsistency in GetContentTask. (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
Index: pkg/analyzer/lib/src/task/dart.dart
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
index 4586fc03b1d0783cf40abe9a97a15fbbeacb0de0..e5778b8d6ddfdb39a72d0e33b10f6efc3ec0e7c2 100644
--- a/pkg/analyzer/lib/src/task/dart.dart
+++ b/pkg/analyzer/lib/src/task/dart.dart
@@ -868,6 +868,27 @@ final ResultDescriptor<CompilationUnit> RESOLVED_UNIT9 =
cachingPolicy: AST_CACHING_POLICY);
/**
+ * List of all `RESOLVED_UNITx` results.
+ */
+final List<ResultDescriptor<CompilationUnit>> RESOLVED_UNIT_RESULTS =
+ <ResultDescriptor<CompilationUnit>>[
+ RESOLVED_UNIT1,
+ RESOLVED_UNIT2,
+ RESOLVED_UNIT3,
+ RESOLVED_UNIT4,
+ RESOLVED_UNIT5,
+ RESOLVED_UNIT6,
+ RESOLVED_UNIT7,
+ RESOLVED_UNIT8,
+ RESOLVED_UNIT9,
+ RESOLVED_UNIT10,
+ RESOLVED_UNIT11,
+ RESOLVED_UNIT12,
+ RESOLVED_UNIT13,
+ RESOLVED_UNIT
+];
+
+/**
* The errors produced while scanning a compilation unit.
*
* The list will be empty if there were no errors, but will not be `null`.
@@ -5578,7 +5599,7 @@ class ScanDartTask extends SourceBasedAnalysisTask {
static Map<String, TaskInput> buildInputs(AnalysisTarget target) {
if (target is Source) {
return <String, TaskInput>{
- CONTENT_INPUT_NAME: CONTENT.of(target),
+ CONTENT_INPUT_NAME: CONTENT.of(target, flushOnAccess: true),
MODIFICATION_TIME_INPUT: MODIFICATION_TIME.of(target)
};
} else if (target is DartScript) {

Powered by Google App Engine
This is Rietveld 408576698