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

Unified Diff: pkg/front_end/messages.yaml

Issue 2754793004: Update messages.yaml with asynchronous messages. (Closed)
Patch Set: Created 3 years, 9 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/compiler/lib/src/parser/element_listener.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 0d64c29ed53a4c918342ad1e86dcee2d7963fa44..19ef8d44bfb2903eea14db2847fb4e27c4aef297 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -286,3 +286,44 @@ UnterminatedToken:
Unspecified:
template: "#string"
+
+AbstractNotSync:
+ template: "Abstract methods can't use 'async', 'async*', or 'sync*'."
+
+AsyncAsIdentifier:
+ template: "'async' can't be used as an identifier in 'async', 'async*', or 'sync*' methods."
+
+AwaitAsIdentifier:
+ template: "'await' can't be used as an identifier in 'async', 'async*', or 'sync*' methods."
+
+AwaitNotAsync:
+ template: "'await' can only be used in 'async' or 'async*' methods."
+
+BuiltInIdentifierAsType:
+ template: "Can't use '#lexeme' as a type."
+
+BuiltInIdentifierInDeclaration:
+ template: "Can't use '#lexeme' as a name here."
+
+AwaitForNotAsync:
+ template: "Asynchronous for-loop can only be used in 'async' or 'async*' methods."
+
+FactoryNotSync:
+ template: "Factories can't use 'async', 'async*', or 'sync*'."
+
+GeneratorReturnsValue:
+ template: "'sync*' and 'async*' can't return a value."
+
+InvalidInlineFunctionType:
+ template: "Invalid inline function type."
+ tip: "Try changing the inline function type (as in 'int f()') to a prefixed function type using the `Function` keyword (as in 'int Function() f')."
+ declaration: "typedef F = Function(int f(String x)); main() { F f; }"
+
+SetterNotSync:
+ template: "Setters can't use 'async', 'async*', or 'sync*'."
+
+YieldAsIdentifier:
+ template: "'yield' can't be used as an identifier in 'async', 'async*', or 'sync*' methods."
+
+YieldNotGenerator:
+ template: "'yield' can only be used in 'sync*' or 'async*' methods."
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698