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

Unified Diff: pkg/compiler/lib/src/parser/element_listener.dart

Issue 2664593002: Port parser and scanner fixes from rasta branch. (Closed)
Patch Set: Rebased on ef8ec26cf36d1f07b4fdf5d605003210826ae1c2. Created 3 years, 11 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 | « no previous file | pkg/front_end/lib/src/fasta/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/parser/element_listener.dart
diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
index 6865600186246fb923cf782f3500e4dcc0d4e875..f7109264fa334857cd60fe7ded35b8e6667a7232 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -630,7 +630,10 @@ class ElementListener extends Listener {
errorCode = MessageKind.INVALID_AWAIT_FOR;
break;
- case ErrorKind.InvalidInputCharacter:
+ case ErrorKind.AsciiControlCharacter:
+ case ErrorKind.NonAsciiIdentifier:
+ case ErrorKind.NonAsciiWhitespace:
+ case ErrorKind.Encoding:
errorCode = MessageKind.BAD_INPUT_CHARACTER;
break;
@@ -642,7 +645,7 @@ class ElementListener extends Listener {
errorCode = MessageKind.VOID_NOT_ALLOWED;
break;
- case ErrorKind.MalformedStringLiteral:
+ case ErrorKind.UnexpectedDollarInString:
errorCode = MessageKind.MALFORMED_STRING_LITERAL;
break;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698