Chromium Code Reviews| Index: dart/pkg/compiler/lib/src/scanner/listener.dart |
| diff --git a/dart/pkg/compiler/lib/src/scanner/listener.dart b/dart/pkg/compiler/lib/src/scanner/listener.dart |
| index 887232e5ae15de41569f8a2f6861b1b74349f1cd..c997b1159d378b14238b02e6cedf30f3ad25c4a8 100644 |
| --- a/dart/pkg/compiler/lib/src/scanner/listener.dart |
| +++ b/dart/pkg/compiler/lib/src/scanner/listener.dart |
| @@ -1465,8 +1465,9 @@ class ElementListener extends Listener { |
| void reportFatalError(Spannable spannable, |
|
Johnni Winther
2015/01/06 08:12:05
Maybe deprecate this method.
ahe
2015/01/07 12:55:24
I don't think this should be deprecated, there are
|
| String message) { |
| - listener.reportFatalError( |
| + listener.reportError( |
| spannable, MessageKind.GENERIC, {'text': message}); |
| + throw new CompilerCancelledException(message); |
| } |
| void reportError(Spannable spannable, |