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

Unified Diff: pkg/fasta/lib/src/kernel/body_builder.dart

Issue 2649923002: Update listener error handling. (Closed)
Patch Set: 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 | « pkg/dart_parser/lib/src/parser.dart ('k') | pkg/fasta/lib/src/source/diet_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fasta/lib/src/kernel/body_builder.dart
diff --git a/pkg/fasta/lib/src/kernel/body_builder.dart b/pkg/fasta/lib/src/kernel/body_builder.dart
index 10c608be2f3ce4d8632287de0fb122ed8cc3c386..9b9d7ac4a5177af0386ad5175bd5dbccd82c69c0 100644
--- a/pkg/fasta/lib/src/kernel/body_builder.dart
+++ b/pkg/fasta/lib/src/kernel/body_builder.dart
@@ -2157,7 +2157,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
if (trailing.contains(token.stringValue) && trailing.contains(string)) {
// We're just trying to get out an error.
if (recoverableErrors.isNotEmpty) {
- reportError(token, ErrorKind.UNSPECIFIED,
+ reportError(token, ErrorKind.Unspecified,
{"text": "Expected: '$string', but got '${token.value}'"});
}
return token;
« no previous file with comments | « pkg/dart_parser/lib/src/parser.dart ('k') | pkg/fasta/lib/src/source/diet_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698