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

Unified Diff: pkg/front_end/lib/src/fasta/source/diet_parser.dart

Issue 2965393002: Use FastaMessage instead of String. Part 1. (Closed)
Patch Set: Add type variable to Code. Created 3 years, 5 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: pkg/front_end/lib/src/fasta/source/diet_parser.dart
diff --git a/pkg/front_end/lib/src/fasta/source/diet_parser.dart b/pkg/front_end/lib/src/fasta/source/diet_parser.dart
index 7d8a8e526df68797b7c207236802d3738f6d9e0c..89226e4cec66e834be4ddc845cd12317c27568cb 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_parser.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_parser.dart
@@ -4,7 +4,7 @@
library fasta.diet_parser;
-import '../fasta_codes.dart' show codeExpectedOpenParens;
+import '../fasta_codes.dart' show messageExpectedOpenParens;
import '../parser/class_member_parser.dart' show ClassMemberParser;
@@ -26,7 +26,7 @@ class DietParser extends ClassMemberParser {
listener.beginOptionalFormalParameters(token);
if (!optional('(', token)) {
if (optional(';', token)) {
- reportRecoverableErrorCode(token, codeExpectedOpenParens);
+ reportRecoverableError(token, messageExpectedOpenParens);
return token;
}
return reportUnexpectedToken(token).next;
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_listener.dart ('k') | pkg/front_end/lib/src/fasta/source/directive_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698