Index: pkg/analyzer/lib/src/string_source.dart |
diff --git a/pkg/analyzer/lib/src/string_source.dart b/pkg/analyzer/lib/src/string_source.dart |
index 7123bb459026cfc0c7e20b6b4a43e4f06cb041b8..e3e91c717ced11f4f370667dd90120e788595db0 100644 |
--- a/pkg/analyzer/lib/src/string_source.dart |
+++ b/pkg/analyzer/lib/src/string_source.dart |
@@ -5,6 +5,7 @@ |
library analyzer.string_source; |
import 'generated/source.dart'; |
+import 'generated/engine.dart' show TimestampedData; |
/// An implementation of [Source] that's based on an in-memory Dart string. |
class StringSource implements Source { |
@@ -25,9 +26,11 @@ class StringSource implements Source { |
bool exists() => true; |
- void getContents(Source_ContentReceiver receiver) => |
+ void getContentsToReceiver(Source_ContentReceiver receiver) => |
receiver.accept(_contents, modificationStamp); |
+ TimestampedData<String> get contents => new TimestampedData(modificationStamp, _contents); |
+ |
String get encoding => throw new UnsupportedError("StringSource doesn't support " |
"encoding."); |