Index: pkg/analyzer/test/generated/test_support.dart |
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart |
index 2552ea7e416d09aae478138c66a7e9f6e52a5718..666b233b961bf6cdc7c78f444f1894374c135c9b 100644 |
--- a/pkg/analyzer/test/generated/test_support.dart |
+++ b/pkg/analyzer/test/generated/test_support.dart |
@@ -551,7 +551,7 @@ class TestLogger implements Logger { |
class TestSource extends Source { |
String _name; |
String _contents; |
- int modificationStamp = 0; |
+ int _modificationStamp = 0; |
bool exists2 = true; |
/** |
@@ -560,6 +560,9 @@ class TestSource extends Source { |
*/ |
bool generateExceptionOnRead = false; |
+ @override |
+ int get modificationStamp => generateExceptionOnRead ? -1 : _modificationStamp; |
+ |
/** |
* The number of times that the contents of this source have been requested. |
*/ |
@@ -611,7 +614,8 @@ class TestSource extends Source { |
return new Uri(scheme: 'file', path: _name).resolveUri(uri); |
} |
void setContents(String value) { |
- modificationStamp = new DateTime.now().millisecondsSinceEpoch; |
+ generateExceptionOnRead = false; |
+ _modificationStamp = new DateTime.now().millisecondsSinceEpoch; |
_contents = value; |
} |
@override |