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 7a641f16f619251229316ecf67042884dc865471..8b8618e2a16a68bd5420ca20ffb25467b9a956ff 100644 |
--- a/pkg/analyzer/lib/file_system/physical_file_system.dart |
+++ b/pkg/analyzer/lib/file_system/physical_file_system.dart |
@@ -179,6 +179,9 @@ class _PhysicalFile extends _PhysicalResource implements File { |
} |
@override |
+ Uri toUri() => new Uri.file(path); |
+ |
+ @override |
void writeAsBytesSync(List<int> bytes) { |
try { |
io.File file = _entry as io.File; |
@@ -256,6 +259,9 @@ class _PhysicalFolder extends _PhysicalResource implements Folder { |
} |
return contains(path); |
} |
+ |
+ @override |
+ Uri toUri() => new Uri.directory(path); |
} |
/** |