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

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

Issue 340703003: Prevent double reporting on hex, strings, and multiline comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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: tests/compiler/dart2js/message_kind_helper.dart
diff --git a/tests/compiler/dart2js/message_kind_helper.dart b/tests/compiler/dart2js/message_kind_helper.dart
index 5a16e5647be008e49853540fbfa61c2eef1e6c3b..4a925294b171963bccc85b0ad59160be73a303d6 100644
--- a/tests/compiler/dart2js/message_kind_helper.dart
+++ b/tests/compiler/dart2js/message_kind_helper.dart
@@ -40,10 +40,11 @@ final Set<MessageKind> kindsWithExtraMessages = new Set<MessageKind>.from([
MessageKind.VAR_FUNCTION_TYPE_PARAMETER,
MessageKind.VOID_NOT_ALLOWED,
- MessageKind.HEX_DIGIT_EXPECTED, // http://dartbug.com/18574
MessageKind.UNMATCHED_TOKEN, // http://dartbug.com/18574
- MessageKind.UNTERMINATED_COMMENT, // http://dartbug.com/18574
- MessageKind.UNTERMINATED_STRING, // http://dartbug.com/18574
+ /// Hard to avoid for multiline strings; there is no case where a multiline
+ /// string can be legitimately followed by EOM, so it is unavoidable that
+ /// the parser will expect a token to follow.
+ MessageKind.UNTERMINATED_STRING, // hard to avoid for multiline strings
ahe 2014/06/23 14:28:49 Could you restore the bug number and remove the co
srawlins 2014/07/15 20:07:08 Done.
ahe 2014/07/16 07:54:18 What you have implemented is the same pattern as i
srawlins 2014/08/12 04:32:58 Somehow this sorted itself out in the last few wee
]);
/// Most messages can be tested without causing a fatal error. Add an exception
@@ -60,7 +61,6 @@ final Set<MessageKind> kindsWithPendingClasses = new Set<MessageKind>.from([
/// stop before analyzing all input, and it isn't safe to reuse it.
final Set<MessageKind> kindsWithFatalErrors = new Set<MessageKind>.from([
// If you add something here, please file a *new* bug report.
- MessageKind.HEX_DIGIT_EXPECTED,
MessageKind.UNMATCHED_TOKEN,
MessageKind.UNTERMINATED_STRING,
]);

Powered by Google App Engine
This is Rietveld 408576698