Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2066)

Unified Diff: dart/tests/compiler/dart2js/parser_test.dart

Issue 251523002: Improve error-recovery from unmatched braces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r35370 Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/parser_test.dart
diff --git a/dart/tests/compiler/dart2js/parser_test.dart b/dart/tests/compiler/dart2js/parser_test.dart
index a1f4ab269c27f4c4117cd5f653fa3e856436cfe5..552692281b8d5deeb3715bda5bfd657812063fce 100644
--- a/dart/tests/compiler/dart2js/parser_test.dart
+++ b/dart/tests/compiler/dart2js/parser_test.dart
@@ -276,6 +276,12 @@ class Collector implements DiagnosticListener {
throw this;
}
+ void reportError(Token token,
+ messageKind,
+ [Map arguments = const {}]) {
+ reportFatalError(token, messageKind, arguments);
+ }
+
void log(message) {
print(message);
}
@@ -302,7 +308,7 @@ void testMissingCloseBraceInClass() {
fullParseUnit(source, diagnosticHandler: new Collector());
}
check(Collector c) {
- Expect.equals(EOF_TOKEN, c.token);
+ Expect.equals(BAD_INPUT_TOKEN, c.token);
return true;
}
Expect.throws(parse, check);
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/warnings.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698