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

Unified Diff: pkg/analyzer/lib/src/string_source.dart

Issue 184893003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
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.");

Powered by Google App Engine
This is Rietveld 408576698