| Index: sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart b/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart
|
| index dd70c694d817c26fb816388419b51d884ebcd170..3ea4101f686420ae029e4e32a5fb97886bca921e 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart
|
| @@ -5,18 +5,16 @@
|
| part of dart2js;
|
|
|
| abstract class DiagnosticListener {
|
| - // TODO(karlklose): replace cancel with better error reporting mechanism.
|
| - void cancel(String reason, {node, token, instruction, element});
|
| // TODO(karlklose): rename log to something like reportInfo.
|
| void log(message);
|
|
|
| - void internalErrorOnElement(Element element, String message);
|
| - void internalError(String message,
|
| - {Node node, Token token, HInstruction instruction,
|
| - Element element});
|
| + void internalError(Spannable spannable, message);
|
|
|
| SourceSpan spanFromSpannable(Spannable node);
|
|
|
| + void reportFatalError(Spannable node, MessageKind errorCode,
|
| + [Map arguments = const {}]);
|
| +
|
| void reportError(Spannable node, MessageKind errorCode,
|
| [Map arguments = const {}]);
|
|
|
|
|