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 010fd0f60dbd6793cdf9d8492b58d986e80687fa..e43ef033c70e0f230a145c1597e53a0192ad96b2 100644 |
--- a/pkg/analyzer/lib/file_system/physical_file_system.dart |
+++ b/pkg/analyzer/lib/file_system/physical_file_system.dart |
@@ -47,10 +47,13 @@ class _PhysicalFile extends _PhysicalResource implements File { |
_PhysicalFile(io.File file) : super(file); |
@override |
- Source createSource(UriKind uriKind) { |
+ Source createSource([Uri uri]) { |
io.File file = _entry as io.File; |
JavaFile javaFile = new JavaFile(file.absolute.path); |
- return new FileBasedSource.con2(javaFile, uriKind); |
+ if (uri == null) { |
+ uri = javaFile.toURI(); |
+ } |
+ return new FileBasedSource.con2(uri, javaFile); |
} |
} |