| 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 26 matching lines...) Expand all Loading... |
| 37 static const String suppressHints = '--suppress-hints'; | 37 static const String suppressHints = '--suppress-hints'; |
| 38 static const String suppressWarnings = '--suppress-warnings'; | 38 static const String suppressWarnings = '--suppress-warnings'; |
| 39 static const String terse = '--terse'; | 39 static const String terse = '--terse'; |
| 40 static const String testMode = '--test-mode'; | 40 static const String testMode = '--test-mode'; |
| 41 static const String trustPrimitives = '--trust-primitives'; | 41 static const String trustPrimitives = '--trust-primitives'; |
| 42 static const String trustTypeAnnotations = '--trust-type-annotations'; | 42 static const String trustTypeAnnotations = '--trust-type-annotations'; |
| 43 static const String trustJSInteropTypeAnnotations = | 43 static const String trustJSInteropTypeAnnotations = |
| 44 '--experimental-trust-js-interop-type-annotations'; | 44 '--experimental-trust-js-interop-type-annotations'; |
| 45 static const String useContentSecurityPolicy = '--csp'; | 45 static const String useContentSecurityPolicy = '--csp'; |
| 46 static const String useKernel = '--use-kernel'; | 46 static const String useKernel = '--use-kernel'; |
| 47 static const String useMultiSourceInfo = '--use-multi-source-info'; |
| 47 static const String useNewSourceInfo = '--use-new-source-info'; | 48 static const String useNewSourceInfo = '--use-new-source-info'; |
| 48 static const String verbose = '--verbose'; | 49 static const String verbose = '--verbose'; |
| 49 static const String version = '--version'; | 50 static const String version = '--version'; |
| 50 | 51 |
| 51 static const String conditionalDirectives = '--conditional-directives'; | 52 static const String conditionalDirectives = '--conditional-directives'; |
| 52 | 53 |
| 53 // The syntax-only level of support for generic methods is included in the | 54 // The syntax-only level of support for generic methods is included in the |
| 54 // 1.50 milestone for Dart. It is not experimental, but also not permanent: | 55 // 1.50 milestone for Dart. It is not experimental, but also not permanent: |
| 55 // a full implementation is expected in the future. Hence, the | 56 // a full implementation is expected in the future. Hence, the |
| 56 // 'GENERIC_METHODS' comments which were added when this feature was | 57 // 'GENERIC_METHODS' comments which were added when this feature was |
| (...skipping 25 matching lines...) Expand all Loading... |
| 82 } | 83 } |
| 83 | 84 |
| 84 class Option { | 85 class Option { |
| 85 static const String showPackageWarnings = | 86 static const String showPackageWarnings = |
| 86 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 87 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; |
| 87 | 88 |
| 88 // Experimental options. | 89 // Experimental options. |
| 89 static const String resolutionInput = '--resolution-input=.+'; | 90 static const String resolutionInput = '--resolution-input=.+'; |
| 90 static const String bazelPaths = '--bazel-paths=.+'; | 91 static const String bazelPaths = '--bazel-paths=.+'; |
| 91 } | 92 } |
| OLD | NEW |