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

Unified Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

Issue 2978993002: translate more fasta error codes to analyzer error codes (Closed)
Patch Set: rebase 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
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/front_end/messages.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
diff --git a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
index 90c7e91d0da5ebb122852880829ea996e414c663..0bb65f1539c424d0678345ce502ba9b6a421c8f3 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -672,6 +672,7 @@ const Template<Message Function(String string)> templateExpectedButGot =
const Code<Message Function(String string)> codeExpectedButGot =
const Code<Message Function(String string)>(
"ExpectedButGot", templateExpectedButGot,
+ analyzerCode: "UNEXPECTED_TOKEN",
dart2jsCode: "MISSING_TOKEN_BEFORE_THIS");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
@@ -732,7 +733,7 @@ const Template<Message Function(Token token)> templateExpectedDeclaration =
const Code<Message Function(Token token)> codeExpectedDeclaration =
const Code<Message Function(Token token)>(
"ExpectedDeclaration", templateExpectedDeclaration,
- dart2jsCode: "*fatal*");
+ analyzerCode: "UNEXPECTED_TOKEN", dart2jsCode: "*fatal*");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsExpectedDeclaration(Token token) {
@@ -834,7 +835,7 @@ const Template<Message Function(Token token)> templateExpectedString =
const Code<Message Function(Token token)> codeExpectedString =
const Code<Message Function(Token token)>(
"ExpectedString", templateExpectedString,
- dart2jsCode: "*fatal*");
+ analyzerCode: "EXPECTED_STRING_LITERAL", dart2jsCode: "*fatal*");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsExpectedString(Token token) {
@@ -960,7 +961,7 @@ const Template<Message Function(Token token)> templateExtraneousModifier =
const Code<Message Function(Token token)> codeExtraneousModifier =
const Code<Message Function(Token token)>(
"ExtraneousModifier", templateExtraneousModifier,
- dart2jsCode: "EXTRANEOUS_MODIFIER");
+ analyzerCode: "UNEXPECTED_TOKEN", dart2jsCode: "EXTRANEOUS_MODIFIER");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsExtraneousModifier(Token token) {
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/front_end/messages.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698