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 'package:front_end/src/base/performace_logger.dart'; | 7 import 'package:front_end/src/base/performace_logger.dart'; |
8 import 'package:front_end/src/byte_store/byte_store.dart'; | 8 import 'package:front_end/src/byte_store/byte_store.dart'; |
9 import 'package:kernel/target/targets.dart' show Target; | 9 import 'package:kernel/target/targets.dart' show Target; |
10 | 10 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 /// | 210 /// |
211 /// The kernel `Program` API includes a `uriToSource` map field that is used | 211 /// The kernel `Program` API includes a `uriToSource` map field that is used |
212 /// to embed the entire contents of the source files. This part of the kernel | 212 /// to embed the entire contents of the source files. This part of the kernel |
213 /// API is in flux and it is not necessary for some tools. Today it is used | 213 /// API is in flux and it is not necessary for some tools. Today it is used |
214 /// for translating error locations and stack traces in the VM. | 214 /// for translating error locations and stack traces in the VM. |
215 // TODO(sigmund): change the default. | 215 // TODO(sigmund): change the default. |
216 bool embedSourceText = true; | 216 bool embedSourceText = true; |
217 | 217 |
218 /// Whether the compiler should throw as soon as it encounters a | 218 /// Whether the compiler should throw as soon as it encounters a |
219 /// compilation error. | 219 /// compilation error. |
220 // TODO(sigmund): change the default (issue #30194). | 220 bool throwOnErrors = false; |
ahe
2017/08/23 15:07:18
This causes all tools to exit with an unhandled ex
Siggi Cherem (dart-lang)
2017/08/23 20:17:34
I commented on issue #30194, I think we should in
ahe
2017/08/24 11:52:01
I'd rather go ahead with this and let the resoluti
| |
221 bool throwOnErrors = true; | |
222 | 221 |
223 /// Whether the compiler should throw as soon as it encounters a | 222 /// Whether the compiler should throw as soon as it encounters a |
224 /// compilation warning. | 223 /// compilation warning. |
225 /// | 224 /// |
226 /// Typically used by developers to debug internals of the compiler. | 225 /// Typically used by developers to debug internals of the compiler. |
227 bool throwOnWarnings = false; | 226 bool throwOnWarnings = false; |
228 | 227 |
229 /// Whether the compiler should throw as soon as it encounters a | 228 /// Whether the compiler should throw as soon as it encounters a |
230 /// compilation nit. | 229 /// compilation nit. |
231 /// | 230 /// |
232 /// Typically used by developers to debug internals of the compiler. | 231 /// Typically used by developers to debug internals of the compiler. |
233 bool throwOnNits = false; | 232 bool throwOnNits = false; |
234 } | 233 } |
OLD | NEW |