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

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

Issue 2951723002: Add closure_test for kernel based members (Closed)
Patch Set: Cleanup Created 3 years, 6 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 | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_model/js_strategy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index 72c7828269cc3a7bfc414712c1cbd354913c468b..7cccae2332e2841957fcca7e50443dcb2fc946e3 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -131,6 +131,7 @@ Future<api.CompilationResult> compile(List<String> argv) {
bool showWarnings;
bool showHints;
bool enableColors;
+ bool loadFromDill = false;
// List of provided options that imply that output is expected.
List<String> optionsImplyCompilation = <String>[];
bool hasDisallowUnsafeEval = false;
@@ -277,6 +278,11 @@ Future<api.CompilationResult> compile(List<String> argv) {
passThrough('--categories=${categories.join(",")}');
}
+ void setLoadFromDill(String argument) {
+ loadFromDill = true;
+ passThrough(argument);
+ }
+
void handleThrowOnError(String argument) {
throwOnError = true;
String parameter = extractParameter(argument, isOptionalArgument: true);
@@ -329,7 +335,7 @@ Future<api.CompilationResult> compile(List<String> argv) {
// implemented.
new OptionHandler(Flags.kernelGlobalInference, passThrough),
new OptionHandler(Flags.useKernel, passThrough),
- new OptionHandler(Flags.loadFromDill, passThrough),
+ new OptionHandler(Flags.loadFromDill, setLoadFromDill),
new OptionHandler(Flags.noFrequencyBasedMinification, passThrough),
new OptionHandler(Flags.verbose, setVerbose),
new OptionHandler(Flags.version, (_) => wantVersion = true),
@@ -454,6 +460,9 @@ Future<api.CompilationResult> compile(List<String> argv) {
for (String hint in hints) {
diagnosticHandler.info(hint, api.Diagnostic.HINT);
}
+ if (loadFromDill) {
+ diagnosticHandler.autoReadFileUri = true;
+ }
if (wantHelp || wantVersion) {
helpAndExit(wantHelp, wantVersion, diagnosticHandler.verbose);
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_model/js_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698