Index: lib/src/compiler/compiler.dart |
diff --git a/lib/src/compiler/compiler.dart b/lib/src/compiler/compiler.dart |
index 31fb4999b5caeaf1c9078b60e956191f8fa83893..86009d52dfc97ea2403591f842d583e85ad726ea 100644 |
--- a/lib/src/compiler/compiler.dart |
+++ b/lib/src/compiler/compiler.dart |
@@ -54,10 +54,9 @@ class ModuleCompiler { |
for (var sourcePath in unit.sources) { |
String sourceUri = sourcePath; |
- if (path.isRelative(sourcePath)) { |
- sourceUri = path.absolute(sourceUri); |
+ if (path.isAbsolute(sourcePath)) { |
+ sourceUri = path.toUri(sourcePath).toString(); |
} |
- sourceUri = path.toUri(sourceUri).toString(); |
Source source = context.sourceFactory.forUri(sourceUri); |
if (source == null) { |
throw new AnalysisException('could not create a source for $sourcePath.' |