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

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

Issue 952333002: Don't do folder existence checks when parsing pub list results. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/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 398e451d63e224e6d1dc6b1aefe501e6e1202a90..80997098310d70b0669f3f591baf23087489ea35 100644
--- a/pkg/analyzer/lib/file_system/physical_file_system.dart
+++ b/pkg/analyzer/lib/file_system/physical_file_system.dart
@@ -130,6 +130,13 @@ class _PhysicalFolder extends _PhysicalResource implements Folder {
}
@override
+ _PhysicalFolder getChildAssumingFolder(String relPath) {
+ String canonicalPath = canonicalizePath(relPath);
+ io.Directory directory = new io.Directory(canonicalPath);
+ return new _PhysicalFolder(directory);
+ }
+
+ @override
List<Resource> getChildren() {
List<Resource> children = <Resource>[];
io.Directory directory = _entry as io.Directory;
« no previous file with comments | « pkg/analyzer/lib/file_system/memory_file_system.dart ('k') | pkg/analyzer/lib/source/pub_package_map_provider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698