@@ -657,6 +657,82 @@ Message _withArgumentsConstEvalInvalidPropertyGet(
657
657
arguments: {'stringOKEmpty' : stringOKEmpty, 'constant' : _constant});
658
658
}
659
659
660
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
661
+ const Template <
662
+ Message Function (String stringOKEmpty, Constant _constant,
663
+ bool isNonNullableByDefault)>
664
+ templateConstEvalInvalidRecordIndexGet = const Template <
665
+ Message Function (
666
+ String stringOKEmpty,
667
+ Constant _constant,
668
+ bool
669
+ isNonNullableByDefault)>(
670
+ problemMessageTemplate:
671
+ r"""The property '#stringOKEmpty' can't be accessed on '#constant' in a constant expression.""" ,
672
+ withArguments: _withArgumentsConstEvalInvalidRecordIndexGet);
673
+
674
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
675
+ const Code <
676
+ Message Function (String stringOKEmpty, Constant _constant,
677
+ bool isNonNullableByDefault)> codeConstEvalInvalidRecordIndexGet =
678
+ const Code <
679
+ Message Function (String stringOKEmpty, Constant _constant,
680
+ bool isNonNullableByDefault)>("ConstEvalInvalidRecordIndexGet" ,
681
+ analyzerCodes: < String > ["CONST_EVAL_THROWS_EXCEPTION" ]);
682
+
683
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
684
+ Message _withArgumentsConstEvalInvalidRecordIndexGet (
685
+ String stringOKEmpty, Constant _constant, bool isNonNullableByDefault) {
686
+ // ignore: unnecessary_null_comparison
687
+ if (stringOKEmpty == null || stringOKEmpty.isEmpty) stringOKEmpty = '(empty)' ;
688
+ TypeLabeler labeler = new TypeLabeler (isNonNullableByDefault);
689
+ List <Object > constantParts = labeler.labelConstant (_constant);
690
+ String constant = constantParts.join ();
691
+ return new Message (codeConstEvalInvalidRecordIndexGet,
692
+ problemMessage:
693
+ """The property '${stringOKEmpty }' can't be accessed on '${constant }' in a constant expression.""" +
694
+ labeler.originMessages,
695
+ arguments: {'stringOKEmpty' : stringOKEmpty, 'constant' : _constant});
696
+ }
697
+
698
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
699
+ const Template <
700
+ Message Function (String stringOKEmpty, Constant _constant,
701
+ bool isNonNullableByDefault)>
702
+ templateConstEvalInvalidRecordNameGet = const Template <
703
+ Message Function (
704
+ String stringOKEmpty,
705
+ Constant _constant,
706
+ bool
707
+ isNonNullableByDefault)>(
708
+ problemMessageTemplate:
709
+ r"""The property '#stringOKEmpty' can't be accessed on '#constant' in a constant expression.""" ,
710
+ withArguments: _withArgumentsConstEvalInvalidRecordNameGet);
711
+
712
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
713
+ const Code <
714
+ Message Function (String stringOKEmpty, Constant _constant,
715
+ bool isNonNullableByDefault)> codeConstEvalInvalidRecordNameGet =
716
+ const Code <
717
+ Message Function (String stringOKEmpty, Constant _constant,
718
+ bool isNonNullableByDefault)>("ConstEvalInvalidRecordNameGet" ,
719
+ analyzerCodes: < String > ["CONST_EVAL_THROWS_EXCEPTION" ]);
720
+
721
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
722
+ Message _withArgumentsConstEvalInvalidRecordNameGet (
723
+ String stringOKEmpty, Constant _constant, bool isNonNullableByDefault) {
724
+ // ignore: unnecessary_null_comparison
725
+ if (stringOKEmpty == null || stringOKEmpty.isEmpty) stringOKEmpty = '(empty)' ;
726
+ TypeLabeler labeler = new TypeLabeler (isNonNullableByDefault);
727
+ List <Object > constantParts = labeler.labelConstant (_constant);
728
+ String constant = constantParts.join ();
729
+ return new Message (codeConstEvalInvalidRecordNameGet,
730
+ problemMessage:
731
+ """The property '${stringOKEmpty }' can't be accessed on '${constant }' in a constant expression.""" +
732
+ labeler.originMessages,
733
+ arguments: {'stringOKEmpty' : stringOKEmpty, 'constant' : _constant});
734
+ }
735
+
660
736
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
661
737
const Template <
662
738
Message Function (Constant _constant, bool isNonNullableByDefault)>
@@ -1843,6 +1919,45 @@ Message _withArgumentsIncorrectTypeArgumentQualifiedInferred(
1843
1919
});
1844
1920
}
1845
1921
1922
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1923
+ const Template <
1924
+ Message Function (int count, int count2, DartType _type,
1925
+ bool isNonNullableByDefault)>
1926
+ templateIndexOutOfBoundInRecordIndexGet =
1927
+ const Template <
1928
+ Message Function (int count, int count2, DartType _type,
1929
+ bool isNonNullableByDefault)>(
1930
+ problemMessageTemplate:
1931
+ r"""Index #count is out of range 0..#count2 of positional fields of records #type.""" ,
1932
+ withArguments: _withArgumentsIndexOutOfBoundInRecordIndexGet);
1933
+
1934
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1935
+ const Code <
1936
+ Message Function (
1937
+ int count, int count2, DartType _type, bool isNonNullableByDefault)>
1938
+ codeIndexOutOfBoundInRecordIndexGet = const Code <
1939
+ Message Function (int count, int count2, DartType _type,
1940
+ bool isNonNullableByDefault)>(
1941
+ "IndexOutOfBoundInRecordIndexGet" ,
1942
+ );
1943
+
1944
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1945
+ Message _withArgumentsIndexOutOfBoundInRecordIndexGet (
1946
+ int count, int count2, DartType _type, bool isNonNullableByDefault) {
1947
+ // ignore: unnecessary_null_comparison
1948
+ if (count == null ) throw 'No count provided' ;
1949
+ // ignore: unnecessary_null_comparison
1950
+ if (count2 == null ) throw 'No count provided' ;
1951
+ TypeLabeler labeler = new TypeLabeler (isNonNullableByDefault);
1952
+ List <Object > typeParts = labeler.labelType (_type);
1953
+ String type = typeParts.join ();
1954
+ return new Message (codeIndexOutOfBoundInRecordIndexGet,
1955
+ problemMessage:
1956
+ """Index ${count } is out of range 0..${count2 } of positional fields of records ${type }.""" +
1957
+ labeler.originMessages,
1958
+ arguments: {'count' : count, 'count2' : count2, 'type' : _type});
1959
+ }
1960
+
1846
1961
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1847
1962
const Template <
1848
1963
Message Function (
@@ -3690,6 +3805,41 @@ Message _withArgumentsMixinInferenceNoMatchingClass(
3690
3805
arguments: {'name' : name, 'name2' : name2, 'type' : _type});
3691
3806
}
3692
3807
3808
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3809
+ const Template <
3810
+ Message Function (
3811
+ String string, DartType _type, bool isNonNullableByDefault)>
3812
+ templateNameNotFoundInRecordNameGet = const Template <
3813
+ Message Function (
3814
+ String string, DartType _type, bool isNonNullableByDefault)>(
3815
+ problemMessageTemplate:
3816
+ r"""Field name #string isn't found in records of type #type.""" ,
3817
+ withArguments: _withArgumentsNameNotFoundInRecordNameGet);
3818
+
3819
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3820
+ const Code <
3821
+ Message Function (
3822
+ String string, DartType _type, bool isNonNullableByDefault)>
3823
+ codeNameNotFoundInRecordNameGet = const Code <
3824
+ Message Function (
3825
+ String string, DartType _type, bool isNonNullableByDefault)>(
3826
+ "NameNotFoundInRecordNameGet" ,
3827
+ );
3828
+
3829
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3830
+ Message _withArgumentsNameNotFoundInRecordNameGet (
3831
+ String string, DartType _type, bool isNonNullableByDefault) {
3832
+ if (string.isEmpty) throw 'No string provided' ;
3833
+ TypeLabeler labeler = new TypeLabeler (isNonNullableByDefault);
3834
+ List <Object > typeParts = labeler.labelType (_type);
3835
+ String type = typeParts.join ();
3836
+ return new Message (codeNameNotFoundInRecordNameGet,
3837
+ problemMessage:
3838
+ """Field name ${string } isn't found in records of type ${type }.""" +
3839
+ labeler.originMessages,
3840
+ arguments: {'string' : string, 'type' : _type});
3841
+ }
3842
+
3693
3843
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3694
3844
const Template <Message Function (DartType _type, bool isNonNullableByDefault)>
3695
3845
templateNonNullAwareSpreadIsNull = const Template <
0 commit comments