Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: pkg/compiler/lib/src/apiimpl.dart

Issue 1897863007: Make backend and reporter customizable. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with 09c242e729de2e488cd36960fe2a4a882421086c Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/backend_api.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/apiimpl.dart
diff --git a/pkg/compiler/lib/src/apiimpl.dart b/pkg/compiler/lib/src/apiimpl.dart
index 3046dfd417db49155111fb3239d09551dfe77325..7a76e2b9aa25cd55085067e868a81cccf8998d9b 100644
--- a/pkg/compiler/lib/src/apiimpl.dart
+++ b/pkg/compiler/lib/src/apiimpl.dart
@@ -16,6 +16,8 @@ import 'package:package_config/src/util.dart' show checkValidPackageUri;
import '../compiler_new.dart' as api;
import 'common/tasks.dart' show GenericTask;
import 'common.dart';
+import 'common/backend_api.dart' show
+ Backend;
import 'compiler.dart';
import 'diagnostics/messages.dart' show Message;
import 'elements/elements.dart' as elements;
@@ -46,12 +48,14 @@ class CompilerImpl extends Compiler {
Uri get libraryRoot => options.platformConfigUri.resolve(".");
CompilerImpl(this.provider, api.CompilerOutput outputProvider, this.handler,
- CompilerOptions options)
+ CompilerOptions options,
+ {MakeBackendFuncion makeBackend, MakeReporterFunction makeReporter})
: resolvedUriTranslator = new ForwardingResolvedUriTranslator(),
super(
options: options,
outputProvider: outputProvider,
- environment: new _Environment(options.environment)) {
+ environment: new _Environment(options.environment),
+ makeBackend: makeBackend, makeReporter: makeReporter) {
_Environment env = environment;
env.compiler = this;
tasks.addAll([
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/backend_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698