| Index: dart/pkg/compiler/lib/src/compiler.dart
|
| diff --git a/dart/pkg/compiler/lib/src/compiler.dart b/dart/pkg/compiler/lib/src/compiler.dart
|
| index 673fa5ba79aac85fd2d5d9284b569acc53350f70..9fbd05c1cbb89b875a376faac0ce130fb23f8bc9 100644
|
| --- a/dart/pkg/compiler/lib/src/compiler.dart
|
| +++ b/dart/pkg/compiler/lib/src/compiler.dart
|
| @@ -1792,34 +1792,6 @@ abstract class Compiler implements DiagnosticListener {
|
| node, messageKind, arguments, api.Diagnostic.ERROR);
|
| }
|
|
|
| - /**
|
| - * Reports an error and then aborts the compiler. Avoid using this method.
|
| - *
|
| - * In order to support incremental compilation, it is preferable to use
|
| - * [reportError]. However, care must be taken to leave the compiler in a
|
| - * consistent state, for example, by creating synthetic erroneous objects.
|
| - *
|
| - * If there's absolutely no way to leave the compiler in a consistent state,
|
| - * calling this method is preferred as it will set [compilerWasCancelled] to
|
| - * true which alerts the incremental compiler to discard all state and start
|
| - * a new compiler. Throwing an exception is also better, as this will set
|
| - * [hasCrashed] which the incremental compiler also listens too (but don't
|
| - * throw exceptions, it creates a really bad user experience).
|
| - *
|
| - * In any case, calling this method is a last resort, as it essentially
|
| - * breaks the user experience of the incremental compiler. The purpose of the
|
| - * incremental compiler is to improve developer productivity. Developers
|
| - * frequently make mistakes, so syntax errors and spelling errors are
|
| - * considered normal to the incremental compiler.
|
| - */
|
| - void reportFatalError(Spannable node, MessageKind messageKind,
|
| - [Map arguments = const {}]) {
|
| - reportError(node, messageKind, arguments);
|
| - // TODO(ahe): Make this only abort the current method.
|
| - throw new CompilerCancelledException(
|
| - 'Error: Cannot continue due to previous error.');
|
| - }
|
| -
|
| void reportWarning(Spannable node, MessageKind messageKind,
|
| [Map arguments = const {}]) {
|
| reportDiagnosticInternal(
|
|
|