@@ -1514,6 +1514,33 @@ const MessageCode messageConstructorCyclic = const MessageCode(
1514
1514
tip:
1515
1515
r"""Try to have all constructors eventually redirect to a non-redirecting constructor.""" );
1516
1516
1517
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1518
+ const Template <Message Function (String name)>
1519
+ templateConstructorInitializeSameInstanceVariableSeveralTimes =
1520
+ const Template <Message Function (String name)>(
1521
+ messageTemplate:
1522
+ r"""'#name' was already initialized by this constructor.""" ,
1523
+ withArguments:
1524
+ _withArgumentsConstructorInitializeSameInstanceVariableSeveralTimes);
1525
+
1526
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1527
+ const Code <Message Function (String name)>
1528
+ codeConstructorInitializeSameInstanceVariableSeveralTimes =
1529
+ const Code <Message Function (String name)>(
1530
+ "ConstructorInitializeSameInstanceVariableSeveralTimes" ,
1531
+ templateConstructorInitializeSameInstanceVariableSeveralTimes,
1532
+ analyzerCodes: < String > ["FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS" ]);
1533
+
1534
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1535
+ Message _withArgumentsConstructorInitializeSameInstanceVariableSeveralTimes (
1536
+ String name) {
1537
+ if (name.isEmpty) throw 'No name provided' ;
1538
+ name = demangleMixinApplicationName (name);
1539
+ return new Message (codeConstructorInitializeSameInstanceVariableSeveralTimes,
1540
+ message: """'${name }' was already initialized by this constructor.""" ,
1541
+ arguments: {'name' : name});
1542
+ }
1543
+
1517
1544
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1518
1545
const Template <Message Function (String name)> templateConstructorNotFound =
1519
1546
const Template <Message Function (String name)>(
@@ -3727,6 +3754,60 @@ Message _withArgumentsFfiStructGeneric(String name) {
3727
3754
arguments: {'name' : name});
3728
3755
}
3729
3756
3757
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3758
+ const Template <
3759
+ Message Function (
3760
+ String
3761
+ name)> templateFieldAlreadyInitializedAtDeclaration = const Template <
3762
+ Message Function (String name)>(
3763
+ messageTemplate:
3764
+ r"""'#name' is a final instance variable that was initialized at the declaration.""" ,
3765
+ withArguments: _withArgumentsFieldAlreadyInitializedAtDeclaration);
3766
+
3767
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3768
+ const Code <Message Function (String name)>
3769
+ codeFieldAlreadyInitializedAtDeclaration =
3770
+ const Code <Message Function (String name)>(
3771
+ "FieldAlreadyInitializedAtDeclaration" ,
3772
+ templateFieldAlreadyInitializedAtDeclaration,
3773
+ analyzerCodes: < String > [
3774
+ "FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION"
3775
+ ]);
3776
+
3777
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3778
+ Message _withArgumentsFieldAlreadyInitializedAtDeclaration (String name) {
3779
+ if (name.isEmpty) throw 'No name provided' ;
3780
+ name = demangleMixinApplicationName (name);
3781
+ return new Message (codeFieldAlreadyInitializedAtDeclaration,
3782
+ message:
3783
+ """'${name }' is a final instance variable that was initialized at the declaration.""" ,
3784
+ arguments: {'name' : name});
3785
+ }
3786
+
3787
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3788
+ const Template <Message Function (String name)>
3789
+ templateFieldAlreadyInitializedAtDeclarationCause =
3790
+ const Template <Message Function (String name)>(
3791
+ messageTemplate: r"""'#name' was initialized here.""" ,
3792
+ withArguments: _withArgumentsFieldAlreadyInitializedAtDeclarationCause);
3793
+
3794
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3795
+ const Code <Message Function (String name)>
3796
+ codeFieldAlreadyInitializedAtDeclarationCause =
3797
+ const Code <Message Function (String name)>(
3798
+ "FieldAlreadyInitializedAtDeclarationCause" ,
3799
+ templateFieldAlreadyInitializedAtDeclarationCause,
3800
+ severity: Severity .context);
3801
+
3802
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3803
+ Message _withArgumentsFieldAlreadyInitializedAtDeclarationCause (String name) {
3804
+ if (name.isEmpty) throw 'No name provided' ;
3805
+ name = demangleMixinApplicationName (name);
3806
+ return new Message (codeFieldAlreadyInitializedAtDeclarationCause,
3807
+ message: """'${name }' was initialized here.""" ,
3808
+ arguments: {'name' : name});
3809
+ }
3810
+
3730
3811
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3731
3812
const Code <Null > codeFieldInitializedOutsideDeclaringClass =
3732
3813
messageFieldInitializedOutsideDeclaringClass;
@@ -3870,58 +3951,6 @@ Message _withArgumentsFinalFieldWithoutInitializer(String name) {
3870
3951
arguments: {'name' : name});
3871
3952
}
3872
3953
3873
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3874
- const Template <Message Function (String name)>
3875
- templateFinalInstanceVariableAlreadyInitialized =
3876
- const Template <Message Function (String name)>(
3877
- messageTemplate:
3878
- r"""'#name' is a final instance variable that has already been initialized.""" ,
3879
- withArguments: _withArgumentsFinalInstanceVariableAlreadyInitialized);
3880
-
3881
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3882
- const Code <Message Function (String name)>
3883
- codeFinalInstanceVariableAlreadyInitialized =
3884
- const Code <Message Function (String name)>(
3885
- "FinalInstanceVariableAlreadyInitialized" ,
3886
- templateFinalInstanceVariableAlreadyInitialized,
3887
- analyzerCodes: < String > ["FINAL_INITIALIZED_MULTIPLE_TIMES" ]);
3888
-
3889
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3890
- Message _withArgumentsFinalInstanceVariableAlreadyInitialized (String name) {
3891
- if (name.isEmpty) throw 'No name provided' ;
3892
- name = demangleMixinApplicationName (name);
3893
- return new Message (codeFinalInstanceVariableAlreadyInitialized,
3894
- message:
3895
- """'${name }' is a final instance variable that has already been initialized.""" ,
3896
- arguments: {'name' : name});
3897
- }
3898
-
3899
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3900
- const Template <Message Function (String name)>
3901
- templateFinalInstanceVariableAlreadyInitializedCause =
3902
- const Template <Message Function (String name)>(
3903
- messageTemplate: r"""'#name' was initialized here.""" ,
3904
- withArguments:
3905
- _withArgumentsFinalInstanceVariableAlreadyInitializedCause);
3906
-
3907
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3908
- const Code <Message Function (String name)>
3909
- codeFinalInstanceVariableAlreadyInitializedCause =
3910
- const Code <Message Function (String name)>(
3911
- "FinalInstanceVariableAlreadyInitializedCause" ,
3912
- templateFinalInstanceVariableAlreadyInitializedCause,
3913
- severity: Severity .context);
3914
-
3915
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3916
- Message _withArgumentsFinalInstanceVariableAlreadyInitializedCause (
3917
- String name) {
3918
- if (name.isEmpty) throw 'No name provided' ;
3919
- name = demangleMixinApplicationName (name);
3920
- return new Message (codeFinalInstanceVariableAlreadyInitializedCause,
3921
- message: """'${name }' was initialized here.""" ,
3922
- arguments: {'name' : name});
3923
- }
3924
-
3925
3954
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3926
3955
const Code <Null > codeForInLoopExactlyOneVariable =
3927
3956
messageForInLoopExactlyOneVariable;
@@ -6128,14 +6157,14 @@ Message _withArgumentsModifierOutOfOrder(String string, String string2) {
6128
6157
}
6129
6158
6130
6159
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6131
- const Code <Null > codeMoreThanOneSuperOrThisInitializer =
6132
- messageMoreThanOneSuperOrThisInitializer ;
6160
+ const Code <Null > codeMoreThanOneSuperInitializer =
6161
+ messageMoreThanOneSuperInitializer ;
6133
6162
6134
6163
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6135
- const MessageCode messageMoreThanOneSuperOrThisInitializer = const MessageCode (
6136
- "MoreThanOneSuperOrThisInitializer " ,
6137
- analyzerCodes: < String > ["SUPER_IN_REDIRECTING_CONSTRUCTOR " ],
6138
- message: r"""Can't have more than one 'super' or 'this' initializer.""" );
6164
+ const MessageCode messageMoreThanOneSuperInitializer = const MessageCode (
6165
+ "MoreThanOneSuperInitializer " ,
6166
+ analyzerCodes: < String > ["MULTIPLE_SUPER_INITIALIZERS " ],
6167
+ message: r"""Can't have more than one 'super' initializer.""" );
6139
6168
6140
6169
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6141
6170
const Code <Null > codeMultipleExtends = messageMultipleExtends;
@@ -6801,6 +6830,15 @@ Message _withArgumentsNullableMixinError(String name) {
6801
6830
arguments: {'name' : name});
6802
6831
}
6803
6832
6833
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6834
+ const Code <Null > codeNullableSpreadError = messageNullableSpreadError;
6835
+
6836
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6837
+ const MessageCode messageNullableSpreadError = const MessageCode (
6838
+ "NullableSpreadError" ,
6839
+ message:
6840
+ r"""An expression whose value can be 'null' must be null-checked before it can be dereferenced.""" );
6841
+
6804
6842
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6805
6843
const Template <Message Function (String name)> templateNullableSuperclassError =
6806
6844
const Template <Message Function (String name)>(
@@ -7605,6 +7643,17 @@ const MessageCode messagePrivateNamedParameter = const MessageCode(
7605
7643
analyzerCodes: < String > ["PRIVATE_OPTIONAL_PARAMETER" ],
7606
7644
message: r"""An optional named parameter can't start with '_'.""" );
7607
7645
7646
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
7647
+ const Code <Null > codeRedirectingConstructorWithAnotherInitializer =
7648
+ messageRedirectingConstructorWithAnotherInitializer;
7649
+
7650
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
7651
+ const MessageCode messageRedirectingConstructorWithAnotherInitializer =
7652
+ const MessageCode ("RedirectingConstructorWithAnotherInitializer" ,
7653
+ analyzerCodes: < String > ["FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR" ],
7654
+ message:
7655
+ r"""A redirecting constructor can't have other initializers.""" );
7656
+
7608
7657
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
7609
7658
const Code <Null > codeRedirectingConstructorWithBody =
7610
7659
messageRedirectingConstructorWithBody;
@@ -7617,6 +7666,29 @@ const MessageCode messageRedirectingConstructorWithBody = const MessageCode(
7617
7666
tip:
7618
7667
r"""Try removing the body, or not making this a redirecting constructor.""" );
7619
7668
7669
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
7670
+ const Code <Null > codeRedirectingConstructorWithMultipleRedirectInitializers =
7671
+ messageRedirectingConstructorWithMultipleRedirectInitializers;
7672
+
7673
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
7674
+ const MessageCode
7675
+ messageRedirectingConstructorWithMultipleRedirectInitializers =
7676
+ const MessageCode ("RedirectingConstructorWithMultipleRedirectInitializers" ,
7677
+ analyzerCodes: < String > ["MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS" ],
7678
+ message:
7679
+ r"""A redirecting constructor can't have more than one redirection.""" );
7680
+
7681
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
7682
+ const Code <Null > codeRedirectingConstructorWithSuperInitializer =
7683
+ messageRedirectingConstructorWithSuperInitializer;
7684
+
7685
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
7686
+ const MessageCode messageRedirectingConstructorWithSuperInitializer =
7687
+ const MessageCode ("RedirectingConstructorWithSuperInitializer" ,
7688
+ analyzerCodes: < String > ["SUPER_IN_REDIRECTING_CONSTRUCTOR" ],
7689
+ message:
7690
+ r"""A redirecting constructor can't have a 'super' initializer.""" );
7691
+
7620
7692
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
7621
7693
const Code <Null > codeRedirectionInNonFactory = messageRedirectionInNonFactory;
7622
7694
@@ -8412,15 +8484,6 @@ const MessageCode messageThisAsIdentifier = const MessageCode(
8412
8484
analyzerCodes: < String > ["INVALID_REFERENCE_TO_THIS" ],
8413
8485
message: r"""Expected identifier, but got 'this'.""" );
8414
8486
8415
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
8416
- const Code <Null > codeThisInitializerNotAlone = messageThisInitializerNotAlone;
8417
-
8418
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
8419
- const MessageCode messageThisInitializerNotAlone = const MessageCode (
8420
- "ThisInitializerNotAlone" ,
8421
- analyzerCodes: < String > ["FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR" ],
8422
- message: r"""Can't have other initializers together with 'this'.""" );
8423
-
8424
8487
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
8425
8488
const Template <Message Function (String string)>
8426
8489
templateThisOrSuperAccessInFieldInitializer =
0 commit comments