Index: pkg/analyzer/lib/analyzer.dart |
diff --git a/pkg/analyzer/lib/analyzer.dart b/pkg/analyzer/lib/analyzer.dart |
index 557295007d8c49a7f5efab8627807e48e6db33ed..38942e3e836172671b62cfa170db223871dc7cb7 100644 |
--- a/pkg/analyzer/lib/analyzer.dart |
+++ b/pkg/analyzer/lib/analyzer.dart |
@@ -25,7 +25,7 @@ export 'src/generated/utilities_dart.dart'; |
CompilationUnit parseDartFile(String path) { |
String contents = new File(path).readAsStringSync(); |
var errorCollector = new _ErrorCollector(); |
- var sourceFactory = new SourceFactory.con2([new FileUriResolver()]); |
+ var sourceFactory = new SourceFactory([new FileUriResolver()]); |
var absolutePath = pathos.absolute(path); |
var source = sourceFactory.forUri(pathos.toUri(absolutePath).toString()); |