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

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

Issue 1132103002: Remove memento. (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/cache.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/context.dart
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
index 5312b6029241adc3402735a74c756068d9939152..5a96e0141d73e9d76e8218f9698c718a8e1f6c72 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -980,8 +980,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
_sourceChanged(source);
}
entry.modificationTime = _contentCache.getModificationStamp(source);
- entry.setValue(
- CONTENT, newContents, cache.TargetedResult.EMPTY_LIST, null);
+ entry.setValue(CONTENT, newContents, cache.TargetedResult.EMPTY_LIST);
} else {
entry.modificationTime = _contentCache.getModificationStamp(source);
}
@@ -996,7 +995,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
String fileContentsData = fileContents.data;
if (fileContentsData == originalContents) {
entry.setValue(
- CONTENT, fileContentsData, cache.TargetedResult.EMPTY_LIST, null);
+ CONTENT, fileContentsData, cache.TargetedResult.EMPTY_LIST);
entry.modificationTime = fileContents.modificationTime;
changed = false;
}
@@ -1089,7 +1088,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
//
cache.CacheEntry entry = getCacheEntry(librarySource);
setValue(ResultDescriptor result, value) {
- entry.setValue(result, value, cache.TargetedResult.EMPTY_LIST, null);
+ entry.setValue(result, value, cache.TargetedResult.EMPTY_LIST);
}
setValue(BUILD_DIRECTIVES_ERRORS, AnalysisError.NO_ERRORS);
setValue(BUILD_FUNCTION_TYPE_ALIASES_ERRORS, AnalysisError.NO_ERRORS);
@@ -1140,7 +1139,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
cache.CacheEntry entry = getCacheEntry(AnalysisContextTarget.request);
entry.setValue(
- TYPE_PROVIDER, typeProvider, cache.TargetedResult.EMPTY_LIST, null);
+ TYPE_PROVIDER, typeProvider, cache.TargetedResult.EMPTY_LIST);
}
@override
@@ -1376,8 +1375,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
cache.CacheEntry entry = _cache.get(source);
if (entry != null) {
entry.modificationTime = _contentCache.getModificationStamp(source);
- entry.setValue(
- CONTENT, contents, cache.TargetedResult.EMPTY_LIST, null);
+ entry.setValue(CONTENT, contents, cache.TargetedResult.EMPTY_LIST);
}
}
} else if (originalContents != null) {
« no previous file with comments | « pkg/analyzer/lib/src/context/cache.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698