OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 front_end.compiler_options; | 5 library front_end.compiler_options; |
6 | 6 |
7 import 'compilation_error.dart'; | 7 import 'compilation_error.dart'; |
8 | 8 |
9 /// Callback used to report errors encountered during compilation. | 9 /// Callback used to report errors encountered during compilation. |
10 typedef void ErrorHandler(CompilationError error); | 10 typedef void ErrorHandler(CompilationError error); |
11 | 11 |
12 /// Front-end options relevant to compiler back ends. | 12 /// Front-end options relevant to compiler back ends. |
13 /// | 13 /// |
14 /// TODO(paulberry): add a mechanism to allow file system operations to be | 14 /// TODO(paulberry): add a mechanism to allow file system operations to be |
15 /// stubbed out for testing. | 15 /// stubbed out for testing. |
| 16 /// |
| 17 /// Not intended to be implemented or extended by clients. |
16 class CompilerOptions { | 18 class CompilerOptions { |
17 /// The path to the Dart SDK. | 19 /// The path to the Dart SDK. |
18 /// | 20 /// |
19 /// If `null`, the SDK will be searched for using | 21 /// If `null`, the SDK will be searched for using |
20 /// [Platform.resolvedExecutable] as a starting point. | 22 /// [Platform.resolvedExecutable] as a starting point. |
21 /// | 23 /// |
22 /// This option is mutually exclusive with [sdkSummary]. | 24 /// This option is mutually exclusive with [sdkSummary]. |
23 String sdkPath; | 25 String sdkPath; |
24 | 26 |
25 /// Callback to which compilation errors should be delivered. | 27 /// Callback to which compilation errors should be delivered. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 /// | 84 /// |
83 /// The value should be a power of two, and should match the `PLATFORM` bit | 85 /// The value should be a power of two, and should match the `PLATFORM` bit |
84 /// flags in sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart. If | 86 /// flags in sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart. If |
85 /// zero, no patch files will be applied. | 87 /// zero, no patch files will be applied. |
86 int platformBit; | 88 int platformBit; |
87 | 89 |
88 /// The declared variables for use by configurable imports and constant | 90 /// The declared variables for use by configurable imports and constant |
89 /// evaluation. | 91 /// evaluation. |
90 Map<String, String> declaredVariables; | 92 Map<String, String> declaredVariables; |
91 } | 93 } |
OLD | NEW |