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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // but considering all method type variables to have bound `dynamic` no | 67 // but considering all method type variables to have bound `dynamic` no |
68 // matter which bound they have syntactically (such that their value as types | 68 // matter which bound they have syntactically (such that their value as types |
69 // is unchecked), and then replacing method type variables by a `DynamicType` | 69 // is unchecked), and then replacing method type variables by a `DynamicType` |
70 // (such that the backend does not need to take method type arguments into | 70 // (such that the backend does not need to take method type arguments into |
71 // account). | 71 // account). |
72 // | 72 // |
73 // The feature has an informal specification which is available at | 73 // The feature has an informal specification which is available at |
74 // https://gist.github.com/eernstg/4353d7b4f669745bed3a5423e04a453c. | 74 // https://gist.github.com/eernstg/4353d7b4f669745bed3a5423e04a453c. |
75 static const String genericMethodSyntax = '--generic-method-syntax'; | 75 static const String genericMethodSyntax = '--generic-method-syntax'; |
76 | 76 |
| 77 // Initializing-formal access is enabled by default and cannot be disabled. |
| 78 // For backward compatibility the option is still accepted, but it is ignored. |
| 79 static const String initializingFormalAccess = '--initializing-formal-access'; |
| 80 |
77 // Experimental flags. | 81 // Experimental flags. |
78 static const String resolveOnly = '--resolve-only'; | 82 static const String resolveOnly = '--resolve-only'; |
79 static const String initializingFormalAccess = '--initializing-formal-access'; | |
80 } | 83 } |
81 | 84 |
82 class Option { | 85 class Option { |
83 static const String showPackageWarnings = | 86 static const String showPackageWarnings = |
84 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; | 87 '${Flags.showPackageWarnings}|${Flags.showPackageWarnings}=.*'; |
85 | 88 |
86 // Experimental options. | 89 // Experimental options. |
87 static const String resolutionInput = '--resolution-input=.+'; | 90 static const String resolutionInput = '--resolution-input=.+'; |
88 static const String bazelPaths = '--bazel-paths=.+'; | 91 static const String bazelPaths = '--bazel-paths=.+'; |
89 } | 92 } |
OLD | NEW |