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/messages.yaml

Issue 2876813002: Implement generalized function types. (Closed)
Patch Set: Address comments. Created 3 years, 7 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/messages.yaml
diff --git a/pkg/front_end/messages.yaml b/pkg/front_end/messages.yaml
index 9157226de4005125c24c8238c5fa0839a829e657..135f3acbed92ff72a35a217adb75cd0d11b9e6d2 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -169,12 +169,6 @@ ExtraneousModifier:
- "abstract var foo; main(){}"
- "static var foo; main(){}"
- "external var foo; main(){}"
-
-ExtraneousModifierReplace:
- template: "Can't have modifier '#lexeme' here."
- tip: "Try replacing modifier '#lexeme' with 'var', 'final', or a type."
- dart2jsCode: EXTRANEOUS_MODIFIER_REPLACE
- script:
- "set foo; main(){}"
- "abstract foo; main(){}"
- "static foo; main(){}"
@@ -354,7 +348,7 @@ AwaitNotAsync:
BuiltInIdentifierAsType:
template: "Can't use '#lexeme' as a type."
- dart2jsCode: GENERIC
+ dart2jsCode: EXTRANEOUS_MODIFIER
BuiltInIdentifierInDeclaration:
template: "Can't use '#lexeme' as a name here."
@@ -395,3 +389,12 @@ OnlyTry:
tip: "Did you forget to add a 'finally' block?"
statement: "try {}"
dart2jsCode: FASTA_IGNORED
+
+TypeAfterVar:
+ template: "Can't have both a type and 'var'."
+ tip: "Try removing 'var.'"
+ dart2jsCode: EXTRANEOUS_MODIFIER
+
+TypeRequired:
+ template: "A type or modifier is required here."
+ tip: "Try adding a type, 'var', 'const', or 'final'."
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/unhandled_listener.dart ('k') | pkg/front_end/tool/_fasta/generate_messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698