Index: pkg/analyzer_experimental/lib/analyzer.dart |
diff --git a/pkg/analyzer_experimental/lib/analyzer.dart b/pkg/analyzer_experimental/lib/analyzer.dart |
index 30f88576ef889e5b387d671a4398b60807b37733..47ca97cd61f7e8eae1a8dbf00f1c4e32ddf55c2b 100644 |
--- a/pkg/analyzer_experimental/lib/analyzer.dart |
+++ b/pkg/analyzer_experimental/lib/analyzer.dart |
@@ -6,6 +6,8 @@ library analyzer; |
import 'dart:io'; |
+import 'package:pathos/path.dart' as pathos; |
+ |
import 'src/error.dart'; |
import 'src/generated/ast.dart'; |
import 'src/generated/error.dart'; |
@@ -13,7 +15,6 @@ import 'src/generated/java_io.dart'; |
import 'src/generated/parser.dart'; |
import 'src/generated/scanner.dart'; |
import 'src/generated/source_io.dart'; |
-import 'src/utils.dart'; |
export 'src/error.dart'; |
export 'src/generated/ast.dart'; |
@@ -25,7 +26,7 @@ CompilationUnit parseDartFile(String path) { |
var contents = new File(path).readAsStringSync(); |
var errorCollector = new _ErrorCollector(); |
var sourceFactory = new SourceFactory.con2([new FileUriResolver()]); |
- var source = sourceFactory.forUri(pathToFileUri(path).toString()); |
+ var source = sourceFactory.forUri(pathos.toUri(path).toString()); |
var scanner = new StringScanner(source, contents, errorCollector); |
var token = scanner.tokenize(); |
var parser = new Parser(source, errorCollector); |