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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 useCpsIr = '--use-cps-ir'; | 46 static const String useCpsIr = '--use-cps-ir'; |
47 static const String verbose = '--verbose'; | 47 static const String verbose = '--verbose'; |
48 static const String version = '--version'; | 48 static const String version = '--version'; |
49 | 49 |
50 // Experimental flags. | 50 // Experimental flags. |
51 static const String conditionalDirectives = '--conditional-directives'; | 51 static const String conditionalDirectives = '--conditional-directives'; |
52 static const String genericMethods = '--enable-generic-methods'; | |
floitsch
2016/02/22 18:40:27
drop the "enable".
floitsch
2016/02/23 10:40:48
Think about it: make sure this contains "syntax" i
eernst
2016/02/23 12:40:45
Done.
| |
52 } | 53 } |
53 | 54 |
54 class Option { | 55 class Option { |
55 static const String showPackageWarnings = | 56 static const String showPackageWarnings = |
56 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 57 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; |
57 } | 58 } |
OLD | NEW |