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

Unified Diff: pkg/front_end/messages.yaml

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/front_end/lib/src/fasta/fasta_codes_generated.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/messages.yaml
diff --git a/pkg/front_end/messages.yaml b/pkg/front_end/messages.yaml
index f0d090826a4b3291a5f19c75d5bc6f20e6738749..28c2a3e157097d2bf21ceca0d4a52f8091a3daad 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -122,6 +122,7 @@ ExpectedButGot:
# a ',' would also have worked. We don't have enough information to give a
# good suggestion.
tip: DONT_KNOW_HOW_TO_FIX,
+ analyzerCode: UNEXPECTED_TOKEN
dart2jsCode: MISSING_TOKEN_BEFORE_THIS
script:
- "main() => true ? 1;"
@@ -135,6 +136,7 @@ ExpectedClassBodyToSkip: ExpectedClassBody
ExpectedDeclaration:
template: "Expected a declaration, but got '#lexeme'."
+ analyzerCode: UNEXPECTED_TOKEN
dart2jsCode: "*fatal*"
ExpectedExpression:
@@ -167,6 +169,7 @@ ExpectedOpenParens:
ExpectedString:
template: "Expected a String, but got '#lexeme'."
+ analyzerCode: EXPECTED_STRING_LITERAL
dart2jsCode: "*fatal*"
ExpectedType:
@@ -176,6 +179,7 @@ ExpectedType:
ExtraneousModifier:
template: "Can't have modifier '#lexeme' here."
tip: "Try removing '#lexeme'."
+ analyzerCode: UNEXPECTED_TOKEN
dart2jsCode: EXTRANEOUS_MODIFIER
script:
- "var String foo; main(){}"
« no previous file with comments | « pkg/front_end/lib/src/fasta/fasta_codes_generated.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698