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

Unified Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

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 | « no previous file | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
diff --git a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
index fb9368f94d94b52a476ca94643feec3eb751d00e..a11099e6ed2cb087a730ff0c804411a005d8bd1e 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -349,6 +349,26 @@ FastaMessage _formatUnexpectedDollarInString(Uri uri, int charOffset) {
arguments: {});
}
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const FastaCode<_FinalFieldWithoutInitializer>
+ codeFinalFieldWithoutInitializer =
+ const FastaCode<_FinalFieldWithoutInitializer>(
+ "FinalFieldWithoutInitializer",
+ template: r"A 'final' field must be initialized.",
+ tip: r"Try adding '= <initializer>'.",
+ dart2jsCode: "FASTA_IGNORED",
+ format: _formatFinalFieldWithoutInitializer);
+
+typedef FastaMessage _FinalFieldWithoutInitializer(Uri uri, int charOffset);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+FastaMessage _formatFinalFieldWithoutInitializer(Uri uri, int charOffset) {
+ return new FastaMessage(uri, charOffset, codeFinalFieldWithoutInitializer,
+ message: "A 'final' field must be initialized.",
+ tip: "Try adding '= <initializer>'.",
+ arguments: {});
+}
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const FastaCode<_ExtraneousModifier> codeExtraneousModifier =
const FastaCode<_ExtraneousModifier>("ExtraneousModifier",
@@ -814,6 +834,26 @@ FastaMessage _formatExpectedButGot(Uri uri, int charOffset, String string) {
arguments: {'string': string});
}
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const FastaCode<_ConstFieldWithoutInitializer>
+ codeConstFieldWithoutInitializer =
+ const FastaCode<_ConstFieldWithoutInitializer>(
+ "ConstFieldWithoutInitializer",
+ template: r"A 'const' field must be initialized.",
+ tip: r"Try adding '= <initializer>'.",
+ dart2jsCode: "FASTA_IGNORED",
+ format: _formatConstFieldWithoutInitializer);
+
+typedef FastaMessage _ConstFieldWithoutInitializer(Uri uri, int charOffset);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+FastaMessage _formatConstFieldWithoutInitializer(Uri uri, int charOffset) {
+ return new FastaMessage(uri, charOffset, codeConstFieldWithoutInitializer,
+ message: "A 'const' field must be initialized.",
+ tip: "Try adding '= <initializer>'.",
+ arguments: {});
+}
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const FastaCode<_AwaitForNotAsync> codeAwaitForNotAsync = const FastaCode<
_AwaitForNotAsync>("AwaitForNotAsync",
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698