| 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'; |
| 11 static const String analyzeAll = '--analyze-all'; | 11 static const String analyzeAll = '--analyze-all'; |
| 12 static const String analyzeMain = '--analyze-main'; | 12 static const String analyzeMain = '--analyze-main'; |
| 13 static const String analyzeOnly = '--analyze-only'; | 13 static const String analyzeOnly = '--analyze-only'; |
| 14 static const String analyzeSignaturesOnly = '--analyze-signatures-only'; | 14 static const String analyzeSignaturesOnly = '--analyze-signatures-only'; |
| 15 static const String disableInlining = '--disable-inlining'; | 15 static const String disableInlining = '--disable-inlining'; |
| 16 static const String disableDiagnosticColors = '--disable-diagnostic-colors'; | 16 static const String disableDiagnosticColors = '--disable-diagnostic-colors'; |
| 17 static const String disableNativeLiveTypeAnalysis = | 17 static const String disableNativeLiveTypeAnalysis = |
| 18 '--disable-native-live-type-analysis'; | 18 '--disable-native-live-type-analysis'; |
| 19 static const String disableTypeInference = '--disable-type-inference'; | 19 static const String disableTypeInference = '--disable-type-inference'; |
| 20 static const String dumpInfo = '--dump-info'; | 20 static const String dumpInfo = '--dump-info'; |
| 21 static const String enableAssertMessage = '--assert-message'; | 21 static const String enableAssertMessage = '--assert-message'; |
| 22 static const String enableCheckedMode = '--enable-checked-mode'; | 22 static const String enableCheckedMode = '--enable-checked-mode'; |
| 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 experimentalTrackAllocations = |
| 27 '--experimental-track-allocations'; |
| 28 static const String experimentalAllocationsPath = |
| 29 '--experimental-allocations-path'; |
| 26 static const String fastStartup = '--fast-startup'; | 30 static const String fastStartup = '--fast-startup'; |
| 27 static const String fatalWarnings = '--fatal-warnings'; | 31 static const String fatalWarnings = '--fatal-warnings'; |
| 28 static const String generateCodeWithCompileTimeErrors = | 32 static const String generateCodeWithCompileTimeErrors = |
| 29 '--generate-code-with-compile-time-errors'; | 33 '--generate-code-with-compile-time-errors'; |
| 30 // Temporary flag to also integrate Kernel into global type inference. | 34 // Temporary flag to also integrate Kernel into global type inference. |
| 31 // TODO(efortuna): Remove when fully implemented and simply use "useKernel". | 35 // TODO(efortuna): Remove when fully implemented and simply use "useKernel". |
| 32 static const String kernelGlobalInference = '--kernel-global-inference'; | 36 static const String kernelGlobalInference = '--kernel-global-inference'; |
| 33 // Read input from a .dill file rather than a .dart input (use only in | 37 // Read input from a .dill file rather than a .dart input (use only in |
| 34 // conjunction with --use-kernel=true). | 38 // conjunction with --use-kernel=true). |
| 35 static const String loadFromDill = '--read-dill'; | 39 static const String loadFromDill = '--read-dill'; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 93 } |
| 90 | 94 |
| 91 class Option { | 95 class Option { |
| 92 static const String showPackageWarnings = | 96 static const String showPackageWarnings = |
| 93 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 97 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; |
| 94 | 98 |
| 95 // Experimental options. | 99 // Experimental options. |
| 96 static const String resolutionInput = '--resolution-input=.+'; | 100 static const String resolutionInput = '--resolution-input=.+'; |
| 97 static const String bazelPaths = '--bazel-paths=.+'; | 101 static const String bazelPaths = '--bazel-paths=.+'; |
| 98 } | 102 } |
| OLD | NEW |