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

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

Issue 1139643004: Add AnalysisCache.getState() and getValue(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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/test/src/context/cache_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/dart_work_manager.dart
diff --git a/pkg/analyzer/lib/src/task/dart_work_manager.dart b/pkg/analyzer/lib/src/task/dart_work_manager.dart
index 674aeb9b00be5383294caaea7630e6a489b5fc6c..0d56d44ea3d6212bd967243a5104041233951556 100644
--- a/pkg/analyzer/lib/src/task/dart_work_manager.dart
+++ b/pkg/analyzer/lib/src/task/dart_work_manager.dart
@@ -178,8 +178,8 @@ class DartWorkManager implements WorkManager {
* computing, i.e. it is not in the valid and not in the error state.
*/
bool _needsComputing(AnalysisTarget target, ResultDescriptor result) {
- CacheEntry entry = context.getCacheEntry(target);
- CacheState state = entry.getState(result);
+ AnalysisCache cache = context.analysisCache;
+ CacheState state = cache.getState(target, result);
return state != CacheState.VALID && state != CacheState.ERROR;
}
}
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/src/context/cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698