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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 251523002: Improve error-recovery from unmatched braces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated parser_test.dart 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
Index: dart/sdk/lib/_internal/compiler/implementation/warnings.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
index 2c361748cc64d9d3d7006f2c7b90fbe074186ad4..212df609b1b0cddff3f752b0fc0bf8c8cf17b179 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -1766,6 +1766,15 @@ main() => r'''
main() => r\"\"\"
"""]);
+ static const MessageKind UNMATCHED_TOKEN = const MessageKind(
+ "Can't find '#{end}' to match '#{begin}'.",
+ howToFix: DONT_KNOW_HOW_TO_FIX,
+ examples: const[
+ "main(",
+ "main(){",
+ "main(){]}",
ahe 2014/04/24 13:08:33 These three examples are tests. They are exercised
+ ]);
+
static const MessageKind UNTERMINATED_TOKEN = const MessageKind(
// This is a fall-back message that shouldn't happen.
"Incomplete token.");
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/scanner/token.dart ('k') | dart/tests/compiler/dart2js/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698