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

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

Issue 1168743002: Reanalyze after creating a referenced part. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | pkg/analyzer/lib/src/task/driver.dart » ('J')
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 d9fada497b7f4c61b161e264b2ad32a98fb79d11..c8aa54d0c05cdc83f78c94ce33ed269cd901e764 100644
--- a/pkg/analyzer/lib/src/context/cache.dart
+++ b/pkg/analyzer/lib/src/context/cache.dart
@@ -425,6 +425,15 @@ class CacheEntry {
*/
/*<V>*/ void setValue(ResultDescriptor /*<V>*/ descriptor, dynamic /*V*/
value, List<TargetedResult> dependedOn) {
+// {
Brian Wilkerson 2015/06/05 18:24:48 Did you intend to include this debugging code?
scheglov 2015/06/05 18:28:24 Yes, I did. I find it often useful for debugging.
+// String valueStr = '$value';
+// if (valueStr.length > 20) {
+// valueStr = valueStr.substring(0, 20) + '...';
+// }
+// valueStr = valueStr.replaceAll('\n', '\\n');
+// print(
+// 'setValue $descriptor for $target value=$valueStr deps=$dependedOn');
+// }
_validateStateChange(descriptor, CacheState.VALID);
TargetedResult thisResult = new TargetedResult(target, descriptor);
if (_partition != null) {
@@ -464,6 +473,7 @@ class CacheEntry {
* invalidation to other results that depend on it.
*/
void _invalidate(ResultDescriptor descriptor) {
+// print('invalidate $descriptor for $target');
ResultData thisData = _resultMap.remove(descriptor);
if (thisData == null) {
return;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | pkg/analyzer/lib/src/task/driver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698