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

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

Issue 131233009: 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 00682395d4c63c45269ffdbb983d1d522a5ce54f..ee6e3fb03fae1aaa05d52f923390bda5bd411bf5 100644
--- a/pkg/analyzer/lib/src/generated/source_io.dart
+++ b/pkg/analyzer/lib/src/generated/source_io.dart
@@ -108,7 +108,7 @@ class FileBasedSource implements Source {
bool operator ==(Object object) => object != null && this.runtimeType == object.runtimeType && _file == (object as FileBasedSource)._file;
- bool exists() => _contentCache.getContents(this) != null || (_file.exists() && !_file.isDirectory());
+ bool exists() => _contentCache.getContents(this) != null || _file.isFile();
void getContents(Source_ContentReceiver receiver) {
//
@@ -116,7 +116,7 @@ class FileBasedSource implements Source {
//
String contents = _contentCache.getContents(this);
if (contents != null) {
- receiver.accept2(contents, _contentCache.getModificationStamp(this));
+ receiver.accept(new CharSequence(contents), _contentCache.getModificationStamp(this));
return;
}
//
@@ -179,7 +179,7 @@ class FileBasedSource implements Source {
void getContentsFromFile(Source_ContentReceiver receiver) {
{
}
- receiver.accept2(file.readAsStringSync(), file.lastModified());
+ receiver.accept(file.readAsCharSequenceSync(), file.lastModified());
}
/**

Powered by Google App Engine
This is Rietveld 408576698