| Index: pkg/compiler/lib/compiler.dart
|
| diff --git a/pkg/compiler/lib/compiler.dart b/pkg/compiler/lib/compiler.dart
|
| index 710ad444d61a817b96096f7ab408a60bdff77980..3db762d3e780c341f3d7b62cb0647a14350116f4 100644
|
| --- a/pkg/compiler/lib/compiler.dart
|
| +++ b/pkg/compiler/lib/compiler.dart
|
| @@ -5,7 +5,6 @@
|
| library compiler;
|
|
|
| import 'dart:async';
|
| -import 'package:package_config/packages.dart';
|
| import 'src/apiimpl.dart';
|
|
|
| // Unless explicitly allowed, passing [:null:] for any argument to the
|
| @@ -59,19 +58,13 @@ typedef EventSink<String> CompilerOutputProvider(String name,
|
| * [:null:]. If [uri] is not [:null:], neither are [begin] and
|
| * [end]. [uri] indicates the compilation unit from where the
|
| * diagnostic originates. [begin] and [end] are zero-based character
|
| - * offsets from the beginning of the compilation unit. [message] is the
|
| + * offsets from the beginning of the compilaton unit. [message] is the
|
| * diagnostic message, and [kind] indicates indicates what kind of
|
| * diagnostic it is.
|
| */
|
| typedef void DiagnosticHandler(Uri uri, int begin, int end,
|
| String message, Diagnostic kind);
|
|
|
| -/**
|
| - * Provides a package lookup mechanism in the case that no package root or
|
| - * package resolution configuration file are explicitly specified.
|
| - */
|
| -typedef Future<Packages> PackagesDiscoveryProvider(Uri uri);
|
| -
|
| /// Information resulting from the compilation.
|
| class CompilationResult {
|
| /// `true` if the compilation succeeded, that is, compilation didn't fail due
|
| @@ -110,9 +103,7 @@ Future<CompilationResult> compile(
|
| DiagnosticHandler handler,
|
| [List<String> options = const [],
|
| CompilerOutputProvider outputProvider,
|
| - Map<String, dynamic> environment = const {},
|
| - Uri packageConfig,
|
| - PackagesDiscoveryProvider packagesDiscoveryProvider]) {
|
| + Map<String, dynamic> environment = const {}]) {
|
| if (!libraryRoot.path.endsWith("/")) {
|
| throw new ArgumentError("libraryRoot must end with a /");
|
| }
|
| @@ -127,9 +118,7 @@ Future<CompilationResult> compile(
|
| libraryRoot,
|
| packageRoot,
|
| options,
|
| - environment,
|
| - packageConfig,
|
| - packagesDiscoveryProvider);
|
| + environment);
|
| return compiler.run(script).then((bool success) {
|
| return new CompilationResult(compiler, isSuccess: success);
|
| });
|
|
|