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

Unified Diff: pkg/front_end/messages.yaml

Issue 2930673002: Implement initializer asserts. (Closed)
Patch Set: Address comments and tweak error recovery. Created 3 years, 6 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/source/stack_listener.dart ('k') | tests/language/assert_initializer_test.dart » ('j') | 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 135f3acbed92ff72a35a217adb75cd0d11b9e6d2..db1e55d5a56f4de197a4d29081d91f7c534617cb 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -398,3 +398,11 @@ TypeAfterVar:
TypeRequired:
template: "A type or modifier is required here."
tip: "Try adding a type, 'var', 'const', or 'final'."
+
+AssertExtraneousArgument:
+ template: "`assert` can't have more than two arguments."
+ dart2jsCode: FASTA_FATAL
+
+AssertAsExpression:
+ template: "`assert` can't be used as an expression."
+ dart2jsCode: FASTA_FATAL
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/stack_listener.dart ('k') | tests/language/assert_initializer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698