Index: lib/src/compiler/compiler.dart |
diff --git a/lib/src/compiler/compiler.dart b/lib/src/compiler/compiler.dart |
index 891cedeaf12cebd6a22afd6e6cdffea4691a35ad..fa6ea22859aacc776736e5cc1df44dbabc3fba21 100644 |
--- a/lib/src/compiler/compiler.dart |
+++ b/lib/src/compiler/compiler.dart |
@@ -67,7 +67,7 @@ class ModuleCompiler { |
if (sourceUri.scheme == '') { |
sourceUri = path.toUri(path.absolute(sourcePath)); |
} |
- Source source = context.sourceFactory.forUri(sourceUri.toString()); |
+ Source source = context.sourceFactory.forUri2(sourceUri); |
if (source == null) { |
throw new AnalysisException('could not create a source for $sourcePath.' |
' The file name is in the wrong format or was not found.'); |