| 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 disableDiagnosticColors = '--disable-diagnostic-colors'; | 16 static const String disableDiagnosticColors = '--disable-diagnostic-colors'; |
| 16 static const String disableNativeLiveTypeAnalysis = | 17 static const String disableNativeLiveTypeAnalysis = |
| 17 '--disable-native-live-type-analysis'; | 18 '--disable-native-live-type-analysis'; |
| 18 static const String disableTypeInference = '--disable-type-inference'; | 19 static const String disableTypeInference = '--disable-type-inference'; |
| 19 static const String dumpInfo = '--dump-info'; | 20 static const String dumpInfo = '--dump-info'; |
| 20 static const String enableAssertMessage = '--assert-message'; | 21 static const String enableAssertMessage = '--assert-message'; |
| 21 static const String enableCheckedMode = '--enable-checked-mode'; | 22 static const String enableCheckedMode = '--enable-checked-mode'; |
| 22 static const String enableDiagnosticColors = '--enable-diagnostic-colors'; | 23 static const String enableDiagnosticColors = '--enable-diagnostic-colors'; |
| 23 static const String enableExperimentalMirrors = | 24 static const String enableExperimentalMirrors = |
| 24 '--enable-experimental-mirrors'; | 25 '--enable-experimental-mirrors'; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 static const String version = '--version'; | 50 static const String version = '--version'; |
| 50 | 51 |
| 51 // Experimental flags. | 52 // Experimental flags. |
| 52 static const String conditionalDirectives = '--conditional-directives'; | 53 static const String conditionalDirectives = '--conditional-directives'; |
| 53 } | 54 } |
| 54 | 55 |
| 55 class Option { | 56 class Option { |
| 56 static const String showPackageWarnings = | 57 static const String showPackageWarnings = |
| 57 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 58 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; |
| 58 } | 59 } |
| OLD | NEW |