| 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'; | 
| 33   static const String minify = '--minify'; | 36   static const String minify = '--minify'; | 
| 34   static const String noFrequencyBasedMinification = | 37   static const String noFrequencyBasedMinification = | 
| 35       '--no-frequency-based-minification'; | 38       '--no-frequency-based-minification'; | 
| 36   static const String noSourceMaps = '--no-source-maps'; | 39   static const String noSourceMaps = '--no-source-maps'; | 
| 37   static const String preserveComments = '--preserve-comments'; | 40   static const String preserveComments = '--preserve-comments'; | 
| 38   static const String preserveUris = '--preserve-uris'; | 41   static const String preserveUris = '--preserve-uris'; | 
| 39   static const String showPackageWarnings = '--show-package-warnings'; | 42   static const String showPackageWarnings = '--show-package-warnings'; | 
| 40   static const String suppressHints = '--suppress-hints'; | 43   static const String suppressHints = '--suppress-hints'; | 
| 41   static const String suppressWarnings = '--suppress-warnings'; | 44   static const String suppressWarnings = '--suppress-warnings'; | 
| 42   static const String terse = '--terse'; | 45   static const String terse = '--terse'; | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 86 } | 89 } | 
| 87 | 90 | 
| 88 class Option { | 91 class Option { | 
| 89   static const String showPackageWarnings = | 92   static const String showPackageWarnings = | 
| 90       '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 93       '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 
| 91 | 94 | 
| 92   // Experimental options. | 95   // Experimental options. | 
| 93   static const String resolutionInput = '--resolution-input=.+'; | 96   static const String resolutionInput = '--resolution-input=.+'; | 
| 94   static const String bazelPaths = '--bazel-paths=.+'; | 97   static const String bazelPaths = '--bazel-paths=.+'; | 
| 95 } | 98 } | 
| OLD | NEW | 
|---|