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

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

Issue 2989453002: Add support for compiling Dart via the FE in dart2js. (Closed)
Patch Set: Created 3 years, 5 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
Index: pkg/compiler/lib/src/commandline_options.dart
diff --git a/pkg/compiler/lib/src/commandline_options.dart b/pkg/compiler/lib/src/commandline_options.dart
index e1a646e26fb69b97b42b60f718a0b7d86338355c..b8a22076ae5c74ba2638518d79d39b1cd6819fec 100644
--- a/pkg/compiler/lib/src/commandline_options.dart
+++ b/pkg/compiler/lib/src/commandline_options.dart
@@ -35,9 +35,14 @@ class Flags {
// Temporary flag to also integrate Kernel into global type inference.
// TODO(efortuna): Remove when fully implemented and simply use "useKernel".
static const String kernelGlobalInference = '--kernel-global-inference';
- // Read input from a .dill file rather than a .dart input (use only in
- // conjunction with --use-kernel=true).
- static const String loadFromDill = '--read-dill';
+
+ /// Enable the unified front end, loading from .dill files, and compilation
+ /// using the kernel representation.
+ /// See [CompilerOptions.previewDart2] for details.
+ // Note: this flag should only be changed in coordination with other teams,
+ // so the same flag is used everywhere.
+ static const String previewDart2 = '--preview-dart-2';
+
static const String minify = '--minify';
static const String noFrequencyBasedMinification =
'--no-frequency-based-minification';

Powered by Google App Engine
This is Rietveld 408576698