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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.cmdline.options; 5 library dart2js.cmdline.options;
6 6
7 /// Commandline flags used in `dart2js.dart` and/or `apiimpl.dart`. 7 /// Commandline flags used in `dart2js.dart` and/or `apiimpl.dart`.
8 class Flags { 8 class Flags {
9 static const String allowMockCompilation = '--allow-mock-compilation'; 9 static const String allowMockCompilation = '--allow-mock-compilation';
10 static const String allowNativeExtensions = '--allow-native-extensions'; 10 static const String allowNativeExtensions = '--allow-native-extensions';
(...skipping 17 matching lines...) Expand all
28 '--experimental-track-allocations'; 28 '--experimental-track-allocations';
29 static const String experimentalAllocationsPath = 29 static const String experimentalAllocationsPath =
30 '--experimental-allocations-path'; 30 '--experimental-allocations-path';
31 static const String fastStartup = '--fast-startup'; 31 static const String fastStartup = '--fast-startup';
32 static const String fatalWarnings = '--fatal-warnings'; 32 static const String fatalWarnings = '--fatal-warnings';
33 static const String generateCodeWithCompileTimeErrors = 33 static const String generateCodeWithCompileTimeErrors =
34 '--generate-code-with-compile-time-errors'; 34 '--generate-code-with-compile-time-errors';
35 // Temporary flag to also integrate Kernel into global type inference. 35 // Temporary flag to also integrate Kernel into global type inference.
36 // TODO(efortuna): Remove when fully implemented and simply use "useKernel". 36 // TODO(efortuna): Remove when fully implemented and simply use "useKernel".
37 static const String kernelGlobalInference = '--kernel-global-inference'; 37 static const String kernelGlobalInference = '--kernel-global-inference';
38 // Read input from a .dill file rather than a .dart input (use only in 38
39 // conjunction with --use-kernel=true). 39 /// Enable the unified front end, loading from .dill files, and compilation
40 static const String loadFromDill = '--read-dill'; 40 /// using the kernel representation.
41 /// See [CompilerOptions.previewDart2] for details.
42 // Note: this flag should only be changed in coordination with other teams,
43 // so the same flag is used everywhere.
44 static const String previewDart2 = '--preview-dart-2';
45
41 static const String minify = '--minify'; 46 static const String minify = '--minify';
42 static const String noFrequencyBasedMinification = 47 static const String noFrequencyBasedMinification =
43 '--no-frequency-based-minification'; 48 '--no-frequency-based-minification';
44 static const String noSourceMaps = '--no-source-maps'; 49 static const String noSourceMaps = '--no-source-maps';
45 static const String preserveComments = '--preserve-comments'; 50 static const String preserveComments = '--preserve-comments';
46 static const String preserveUris = '--preserve-uris'; 51 static const String preserveUris = '--preserve-uris';
47 static const String showPackageWarnings = '--show-package-warnings'; 52 static const String showPackageWarnings = '--show-package-warnings';
48 static const String suppressHints = '--suppress-hints'; 53 static const String suppressHints = '--suppress-hints';
49 static const String suppressWarnings = '--suppress-warnings'; 54 static const String suppressWarnings = '--suppress-warnings';
50 static const String terse = '--terse'; 55 static const String terse = '--terse';
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 99 }
95 100
96 class Option { 101 class Option {
97 static const String showPackageWarnings = 102 static const String showPackageWarnings =
98 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; 103 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*';
99 104
100 // Experimental options. 105 // Experimental options.
101 static const String resolutionInput = '--resolution-input=.+'; 106 static const String resolutionInput = '--resolution-input=.+';
102 static const String bazelPaths = '--bazel-paths=.+'; 107 static const String bazelPaths = '--bazel-paths=.+';
103 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698