Index: pkg/analyzer/example/resolver_driver.dart |
diff --git a/pkg/analyzer/example/resolver_driver.dart b/pkg/analyzer/example/resolver_driver.dart |
index 8cb18dc4eb8a2dc27b07cdb472e033b105279610..d483516c12c4200a37868fe2a2f65e99a640a7f6 100644 |
--- a/pkg/analyzer/example/resolver_driver.dart |
+++ b/pkg/analyzer/example/resolver_driver.dart |
@@ -26,8 +26,8 @@ main(List<String> args) { |
DartSdk sdk = DirectoryBasedDartSdk.defaultSdk; |
AnalysisContext context = AnalysisEngine.instance.createAnalysisContext(); |
- context.sourceFactory = new SourceFactory.con2([new DartUriResolver(sdk), new FileUriResolver()]); |
- Source source = new FileBasedSource.con1(context.sourceFactory.contentCache, new JavaFile(args[1])); |
+ context.sourceFactory = new SourceFactory([new DartUriResolver(sdk), new FileUriResolver()]); |
+ Source source = new FileBasedSource.con1(new JavaFile(args[1])); |
// |
ChangeSet changeSet = new ChangeSet(); |
changeSet.added(source); |