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; |