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

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

Issue 134533007: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/source.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e894d18db33f98e815814af6119b3bddbf3ac37e..e751b79cb139b8ceac43db875ad76710c7f7cf75 100644
--- a/pkg/analyzer/lib/src/generated/source_io.dart
+++ b/pkg/analyzer/lib/src/generated/source_io.dart
@@ -19,18 +19,18 @@ abstract class LocalSourcePredicate {
/**
* Instance of [LocalSourcePredicate] that always returns `false`.
*/
- static final LocalSourcePredicate FALSE = new LocalSourcePredicate_18();
+ static final LocalSourcePredicate FALSE = new LocalSourcePredicate_20();
/**
* Instance of [LocalSourcePredicate] that always returns `true`.
*/
- static final LocalSourcePredicate TRUE = new LocalSourcePredicate_19();
+ static final LocalSourcePredicate TRUE = new LocalSourcePredicate_21();
/**
* Instance of [LocalSourcePredicate] that returns `true` for all [Source]s
* except of SDK.
*/
- static final LocalSourcePredicate NOT_SDK = new LocalSourcePredicate_20();
+ static final LocalSourcePredicate NOT_SDK = new LocalSourcePredicate_22();
/**
* Determines if the given [Source] is local.
@@ -41,15 +41,15 @@ abstract class LocalSourcePredicate {
bool isLocal(Source source);
}
-class LocalSourcePredicate_18 implements LocalSourcePredicate {
+class LocalSourcePredicate_20 implements LocalSourcePredicate {
bool isLocal(Source source) => false;
}
-class LocalSourcePredicate_19 implements LocalSourcePredicate {
+class LocalSourcePredicate_21 implements LocalSourcePredicate {
bool isLocal(Source source) => true;
}
-class LocalSourcePredicate_20 implements LocalSourcePredicate {
+class LocalSourcePredicate_22 implements LocalSourcePredicate {
bool isLocal(Source source) => source.uriKind != UriKind.DART_URI;
}
@@ -272,7 +272,7 @@ class PackageUriResolver extends UriResolver {
Uri restoreAbsolute(Source source) {
if (source is FileBasedSource) {
- String sourcePath = (source as FileBasedSource).file.getPath();
+ String sourcePath = source.file.getPath();
for (JavaFile packagesDirectory in _packagesDirectories) {
List<JavaFile> pkgFolders = packagesDirectory.listFiles();
if (pkgFolders != null) {
@@ -379,7 +379,7 @@ class DirectoryBasedSourceContainer implements SourceContainer {
bool contains(Source source) => source.fullName.startsWith(_path);
- bool operator ==(Object obj) => (obj is DirectoryBasedSourceContainer) && (obj as DirectoryBasedSourceContainer).path == path;
+ bool operator ==(Object obj) => (obj is DirectoryBasedSourceContainer) && obj.path == path;
/**
* Answer the receiver's path, used to determine if a source is contained in the receiver.
« no previous file with comments | « pkg/analyzer/lib/src/generated/source.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698