Index: pkg/compiler/lib/src/mirrors/analyze.dart |
diff --git a/pkg/compiler/lib/src/mirrors/analyze.dart b/pkg/compiler/lib/src/mirrors/analyze.dart |
index 44bd859ed2349ac8e868850441c0262016919dc8..8932fff4d8e772813402c52c8a2450c1c1e4383e 100644 |
--- a/pkg/compiler/lib/src/mirrors/analyze.dart |
+++ b/pkg/compiler/lib/src/mirrors/analyze.dart |
@@ -26,7 +26,9 @@ Future<MirrorSystem> analyze(List<Uri> libraries, |
Uri packageRoot, |
api.CompilerInputProvider inputProvider, |
api.DiagnosticHandler diagnosticHandler, |
- [List<String> options = const <String>[]]) { |
+ [List<String> options = const <String>[], |
+ Uri packageConfig, |
+ api.PackagesDiscoveryProvider findPackages]) { |
if (!libraryRoot.path.endsWith("/")) { |
throw new ArgumentError("libraryRoot must end with a /"); |
} |
@@ -54,9 +56,12 @@ Future<MirrorSystem> analyze(List<Uri> libraries, |
Compiler compiler = new apiimpl.Compiler(inputProvider, |
null, |
internalDiagnosticHandler, |
- libraryRoot, packageRoot, |
+ libraryRoot, |
+ packageRoot, |
options, |
- const {}); |
+ const {}, |
+ packageConfig, |
+ findPackages); |
compiler.librariesToAnalyzeWhenRun = libraries; |
return compiler.run(null).then((bool success) { |
if (success && !compilationFailed) { |