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

Unified Diff: pkg/analyzer/lib/file_system/physical_file_system.dart

Issue 456893002: Support for excluded files/folders. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/file_system/physical_file_system.dart
diff --git a/pkg/analyzer/lib/file_system/physical_file_system.dart b/pkg/analyzer/lib/file_system/physical_file_system.dart
index 4a4298d30377c32e86bcb98c51191e3de8c46a13..55c778e76dc8f056a8e58f05de0ec9ce792d92ee 100644
--- a/pkg/analyzer/lib/file_system/physical_file_system.dart
+++ b/pkg/analyzer/lib/file_system/physical_file_system.dart
@@ -55,6 +55,11 @@ class _PhysicalFile extends _PhysicalResource implements File {
}
return new FileBasedSource.con2(uri, javaFile);
}
+
+ @override
+ bool isOrContains(String path) {
+ return path == this.path;
+ }
}
@@ -99,6 +104,14 @@ class _PhysicalFolder extends _PhysicalResource implements Folder {
}
return children;
}
+
+ @override
+ bool isOrContains(String path) {
+ if (path == this.path) {
+ return true;
+ }
+ return contains(path);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698