| OLD | NEW |
| 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 12 matching lines...) Expand all Loading... |
| 23 static const String enableDiagnosticColors = '--enable-diagnostic-colors'; | 23 static const String enableDiagnosticColors = '--enable-diagnostic-colors'; |
| 24 static const String enableExperimentalMirrors = | 24 static const String enableExperimentalMirrors = |
| 25 '--enable-experimental-mirrors'; | 25 '--enable-experimental-mirrors'; |
| 26 static const String fastStartup = '--fast-startup'; | 26 static const String fastStartup = '--fast-startup'; |
| 27 static const String fatalWarnings = '--fatal-warnings'; | 27 static const String fatalWarnings = '--fatal-warnings'; |
| 28 static const String generateCodeWithCompileTimeErrors = | 28 static const String generateCodeWithCompileTimeErrors = |
| 29 '--generate-code-with-compile-time-errors'; | 29 '--generate-code-with-compile-time-errors'; |
| 30 // Temporary flag to also integrate Kernel into global type inference. | 30 // Temporary flag to also integrate Kernel into global type inference. |
| 31 // TODO(efortuna): Remove when fully implemented and simply use "useKernel". | 31 // TODO(efortuna): Remove when fully implemented and simply use "useKernel". |
| 32 static const String kernelGlobalInference = '--kernel-global-inference'; | 32 static const String kernelGlobalInference = '--kernel-global-inference'; |
| 33 // Read input from a .dill file rather than a .dart input (use only in | |
| 34 // conjunction with --use-kernel=true). | |
| 35 static const String loadFromDill = '--read-dill'; | |
| 36 static const String minify = '--minify'; | 33 static const String minify = '--minify'; |
| 37 static const String noFrequencyBasedMinification = | 34 static const String noFrequencyBasedMinification = |
| 38 '--no-frequency-based-minification'; | 35 '--no-frequency-based-minification'; |
| 39 static const String noSourceMaps = '--no-source-maps'; | 36 static const String noSourceMaps = '--no-source-maps'; |
| 40 static const String preserveComments = '--preserve-comments'; | 37 static const String preserveComments = '--preserve-comments'; |
| 41 static const String preserveUris = '--preserve-uris'; | 38 static const String preserveUris = '--preserve-uris'; |
| 42 static const String showPackageWarnings = '--show-package-warnings'; | 39 static const String showPackageWarnings = '--show-package-warnings'; |
| 43 static const String suppressHints = '--suppress-hints'; | 40 static const String suppressHints = '--suppress-hints'; |
| 44 static const String suppressWarnings = '--suppress-warnings'; | 41 static const String suppressWarnings = '--suppress-warnings'; |
| 45 static const String terse = '--terse'; | 42 static const String terse = '--terse'; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 86 } |
| 90 | 87 |
| 91 class Option { | 88 class Option { |
| 92 static const String showPackageWarnings = | 89 static const String showPackageWarnings = |
| 93 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 90 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; |
| 94 | 91 |
| 95 // Experimental options. | 92 // Experimental options. |
| 96 static const String resolutionInput = '--resolution-input=.+'; | 93 static const String resolutionInput = '--resolution-input=.+'; |
| 97 static const String bazelPaths = '--bazel-paths=.+'; | 94 static const String bazelPaths = '--bazel-paths=.+'; |
| 98 } | 95 } |
| OLD | NEW |