Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 /// Defines the API for the front end to communicate information about | |
| 6 /// compilation errors to clients. | |
| 7 library front_end.compilation_error; | |
| 8 | |
| 9 import 'source_location.dart'; | |
|
Brian Wilkerson
2016/10/13 23:37:01
I'm not seeing this file in the CL. Did you forget
Paul Berry
2016/10/14 00:09:35
Whoops, you're correct. Thanks.
| |
| 10 | |
| 11 /// A single error that occurred during compilation, and information about where | |
| 12 /// it occurred. | |
| 13 /// | |
| 14 /// TODO(paulberry): add a reference to the analyzer error code. | |
|
Brian Wilkerson
2016/10/13 23:37:01
We also need the correction message and support fo
Paul Berry
2016/10/14 00:09:35
I'm not convinced that we need these--they sound l
Paul Berry
2016/10/14 21:32:34
After further discussion this morning, I'm ok addi
| |
| 15 abstract class CompilationError { | |
| 16 /// A text description of the compile error. | |
| 17 String get message; | |
| 18 | |
| 19 /// The source location where the error occurred. | |
| 20 SourceLocation get location; | |
| 21 } | |
| OLD | NEW |