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

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

Issue 2664593002: Port parser and scanner fixes from rasta branch. (Closed)
Patch Set: Update status files. 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/dart_parser/lib/dart_parser.dart » ('j') | pkg/dart_parser/lib/src/parser.dart » ('J')
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 11d710850dc3b9f331385a7ccfb1aff63fa668fa..53c275f5429c24a780a23bed729d5e3bee4927fb 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -629,7 +629,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;
@@ -641,7 +644,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/dart_parser/lib/dart_parser.dart » ('j') | pkg/dart_parser/lib/src/parser.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698