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 /// |
221 bool throwOnErrors = true; | 221 /// Typically used by developers to debug internals of the compiler. |
| 222 bool throwOnErrorsForDebugging = false; |
222 | 223 |
223 /// Whether the compiler should throw as soon as it encounters a | 224 /// Whether the compiler should throw as soon as it encounters a |
224 /// compilation warning. | 225 /// compilation warning. |
225 /// | 226 /// |
226 /// Typically used by developers to debug internals of the compiler. | 227 /// Typically used by developers to debug internals of the compiler. |
227 bool throwOnWarnings = false; | 228 bool throwOnWarningsForDebugging = false; |
228 | 229 |
229 /// Whether the compiler should throw as soon as it encounters a | 230 /// Whether the compiler should throw as soon as it encounters a |
230 /// compilation nit. | 231 /// compilation nit. |
231 /// | 232 /// |
232 /// Typically used by developers to debug internals of the compiler. | 233 /// Typically used by developers to debug internals of the compiler. |
233 bool throwOnNits = false; | 234 bool throwOnNitsForDebugging = false; |
234 } | 235 } |
OLD | NEW |