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

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

Issue 2167773007: Use local variable/function index in its enclosing executable as a part of the identifier. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/cache.dart
diff --git a/pkg/analyzer/lib/src/context/cache.dart b/pkg/analyzer/lib/src/context/cache.dart
index 8e9ca2bd3d3d668b77ce673efad3413c744da90c..38d7d1c372bd18959f309585693d6eb65b8dff48 100644
--- a/pkg/analyzer/lib/src/context/cache.dart
+++ b/pkg/analyzer/lib/src/context/cache.dart
@@ -346,9 +346,7 @@ class CacheEntry {
Map<ResultDescriptor, ResultData> _resultMap =
new HashMap<ResultDescriptor, ResultData>();
- CacheEntry(this.target) {
- _markAsCacheKey(target);
- }
+ CacheEntry(this.target);
/**
* The exception that caused one or more values to have a state of
@@ -397,10 +395,6 @@ class CacheEntry {
}
});
_resultMap.clear();
- AnalysisTarget oldTarget = target;
- if (oldTarget is ElementImpl) {
- oldTarget.setModifier(Modifier.CACHE_KEY, false);
- }
}
/**
@@ -755,15 +749,6 @@ class CacheEntry {
}
/**
- * If the given `target` is an element, mark it as being a cache key.
- */
- void _markAsCacheKey(AnalysisTarget target) {
- if (target is ElementImpl) {
- target.setModifier(Modifier.CACHE_KEY, true);
- }
- }
-
- /**
* Set the [dependedOn] on which this result depends.
*/
void _setDependedOnResults(ResultData thisData, TargetedResult thisResult,
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698