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

Unified Diff: pkg/analyzer/lib/src/generated/source_io.dart

Issue 156763002: 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/generated/source_io.dart
diff --git a/pkg/analyzer/lib/src/generated/source_io.dart b/pkg/analyzer/lib/src/generated/source_io.dart
index ee6e3fb03fae1aaa05d52f923390bda5bd411bf5..ed1ae3b441f4db66c0269ba7027e117919889f49 100644
--- a/pkg/analyzer/lib/src/generated/source_io.dart
+++ b/pkg/analyzer/lib/src/generated/source_io.dart
@@ -116,7 +116,7 @@ class FileBasedSource implements Source {
//
String contents = _contentCache.getContents(this);
if (contents != null) {
- receiver.accept(new CharSequence(contents), _contentCache.getModificationStamp(this));
+ receiver.accept(contents, _contentCache.getModificationStamp(this));
return;
}
//
@@ -179,7 +179,7 @@ class FileBasedSource implements Source {
void getContentsFromFile(Source_ContentReceiver receiver) {
{
}
- receiver.accept(file.readAsCharSequenceSync(), file.lastModified());
+ receiver.accept(file.readAsStringSync(), file.lastModified());
}
/**

Powered by Google App Engine
This is Rietveld 408576698