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

Unified Diff: pkg/front_end/messages.yaml

Issue 2929383002: Various semantic checks on field initializers. (Closed)
Patch Set: 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/parser/parser.dart ('k') | tests/co19/co19-kernel.status » ('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 90d716e914a9af2962b8e728398ca18e985c1e7a..d7b1e51f8ef6ea16191191b3fe1cd3abbeb5834e 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -434,3 +434,13 @@ SuperNullAware:
template: "'super' can't be null."
tip: "Try replacing '?.' with '.'"
dart2jsCode: FASTA_IGNORED
+
+ConstFieldWithoutInitializer:
+ template: "A 'const' field must be initialized."
+ tip: "Try adding '= <initializer>'."
+ dart2jsCode: FASTA_IGNORED
+
+FinalFieldWithoutInitializer:
+ template: "A 'final' field must be initialized."
+ tip: "Try adding '= <initializer>'."
+ dart2jsCode: FASTA_IGNORED
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698