mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
Add a "correction" field to front end compilation errors.
R=brianwilkerson@google.com Review URL: https://codereview.chromium.org/2429213008 .
This commit is contained in:
parent
1f6e03883e
commit
78ed4066c8
|
@ -13,14 +13,14 @@ import 'package:source_span/source_span.dart' show SourceSpan;
|
|||
///
|
||||
/// TODO(paulberry): add a reference to the analyzer error code.
|
||||
///
|
||||
/// TODO(paulberry): add a correction message, once most analyzer errors have
|
||||
/// one.
|
||||
///
|
||||
/// Not intended to be implemented or extended by clients.
|
||||
abstract class CompilationError {
|
||||
/// A text description of the compile error.
|
||||
String get message;
|
||||
/// A text description of how the user can fix the error. May be `null`.
|
||||
String get correction;
|
||||
|
||||
/// The source location where the error occurred.
|
||||
SourceSpan get location;
|
||||
|
||||
/// A text description of the compile error.
|
||||
String get message;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue