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; |