@@ -1194,33 +1194,32 @@ const MessageCode messageConstEvalContext =
1194
1194
const Template <
1195
1195
Message Function (
1196
1196
String
1197
- name )> templateConstEvalDeferredLibrary = const Template <
1198
- Message Function (String name )>(
1197
+ nameOKEmpty )> templateConstEvalDeferredLibrary = const Template <
1198
+ Message Function (String nameOKEmpty )>(
1199
1199
messageTemplate:
1200
- r"""'#name ' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""" ,
1200
+ r"""'#nameOKEmpty ' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""" ,
1201
1201
tipTemplate:
1202
1202
r"""Try moving the constant from the deferred library, or removing 'deferred' from the import.
1203
1203
""" ,
1204
1204
withArguments: _withArgumentsConstEvalDeferredLibrary);
1205
1205
1206
1206
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1207
- const Code <Message Function (String name )> codeConstEvalDeferredLibrary =
1208
- const Code <Message Function (String name )>(
1207
+ const Code <Message Function (String nameOKEmpty )> codeConstEvalDeferredLibrary =
1208
+ const Code <Message Function (String nameOKEmpty )>(
1209
1209
"ConstEvalDeferredLibrary" , templateConstEvalDeferredLibrary,
1210
1210
analyzerCodes: < String > [
1211
1211
"NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY"
1212
1212
]);
1213
1213
1214
1214
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1215
- Message _withArgumentsConstEvalDeferredLibrary (String name) {
1216
- if (name.isEmpty) throw 'No name provided' ;
1217
- name = demangleMixinApplicationName (name);
1215
+ Message _withArgumentsConstEvalDeferredLibrary (String nameOKEmpty) {
1216
+ if (nameOKEmpty == null || nameOKEmpty.isEmpty) nameOKEmpty = '(unnamed)' ;
1218
1217
return new Message (codeConstEvalDeferredLibrary,
1219
1218
message:
1220
- """'${name }' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""" ,
1219
+ """'${nameOKEmpty }' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""" ,
1221
1220
tip: """Try moving the constant from the deferred library, or removing 'deferred' from the import.
1222
1221
""" ,
1223
- arguments: {'name ' : name });
1222
+ arguments: {'nameOKEmpty ' : nameOKEmpty });
1224
1223
}
1225
1224
1226
1225
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
@@ -1243,53 +1242,53 @@ const MessageCode messageConstEvalFailedAssertion = const MessageCode(
1243
1242
message: r"""This assertion failed.""" );
1244
1243
1245
1244
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1246
- const Template <Message Function (String string )>
1245
+ const Template <Message Function (String stringOKEmpty )>
1247
1246
templateConstEvalFailedAssertionWithMessage =
1248
- const Template <Message Function (String string)>(
1249
- messageTemplate: r"""This assertion failed with message: #string""" ,
1247
+ const Template <Message Function (String stringOKEmpty)>(
1248
+ messageTemplate:
1249
+ r"""This assertion failed with message: #stringOKEmpty""" ,
1250
1250
withArguments: _withArgumentsConstEvalFailedAssertionWithMessage);
1251
1251
1252
1252
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1253
- const Code <Message Function (String string )>
1253
+ const Code <Message Function (String stringOKEmpty )>
1254
1254
codeConstEvalFailedAssertionWithMessage =
1255
- const Code <Message Function (String string )>(
1255
+ const Code <Message Function (String stringOKEmpty )>(
1256
1256
"ConstEvalFailedAssertionWithMessage" ,
1257
1257
templateConstEvalFailedAssertionWithMessage,
1258
1258
analyzerCodes: < String > ["CONST_EVAL_THROWS_EXCEPTION" ]);
1259
1259
1260
1260
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1261
- Message _withArgumentsConstEvalFailedAssertionWithMessage (String string) {
1262
- if (string.isEmpty) throw 'No string provided' ;
1261
+ Message _withArgumentsConstEvalFailedAssertionWithMessage (
1262
+ String stringOKEmpty) {
1263
+ if (stringOKEmpty == null || stringOKEmpty.isEmpty) stringOKEmpty = '(empty)' ;
1263
1264
return new Message (codeConstEvalFailedAssertionWithMessage,
1264
- message: """This assertion failed with message: ${string }""" ,
1265
- arguments: {'string ' : string });
1265
+ message: """This assertion failed with message: ${stringOKEmpty }""" ,
1266
+ arguments: {'stringOKEmpty ' : stringOKEmpty });
1266
1267
}
1267
1268
1268
1269
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1269
- const Template <
1270
- Message Function (
1271
- String
1272
- name)> templateConstEvalInvalidStaticInvocation = const Template <
1273
- Message Function (String name)>(
1274
- messageTemplate:
1275
- r"""The invocation of '#name' is not allowed in a constant expression.""" ,
1276
- withArguments: _withArgumentsConstEvalInvalidStaticInvocation);
1270
+ const Template <Message Function (String nameOKEmpty)>
1271
+ templateConstEvalInvalidStaticInvocation =
1272
+ const Template <Message Function (String nameOKEmpty)>(
1273
+ messageTemplate:
1274
+ r"""The invocation of '#nameOKEmpty' is not allowed in a constant expression.""" ,
1275
+ withArguments: _withArgumentsConstEvalInvalidStaticInvocation);
1277
1276
1278
1277
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1279
- const Code <Message Function (String name)> codeConstEvalInvalidStaticInvocation =
1280
- const Code <Message Function (String name)>(
1278
+ const Code <Message Function (String nameOKEmpty)>
1279
+ codeConstEvalInvalidStaticInvocation =
1280
+ const Code <Message Function (String nameOKEmpty)>(
1281
1281
"ConstEvalInvalidStaticInvocation" ,
1282
1282
templateConstEvalInvalidStaticInvocation,
1283
1283
analyzerCodes: < String > ["CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE" ]);
1284
1284
1285
1285
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1286
- Message _withArgumentsConstEvalInvalidStaticInvocation (String name) {
1287
- if (name.isEmpty) throw 'No name provided' ;
1288
- name = demangleMixinApplicationName (name);
1286
+ Message _withArgumentsConstEvalInvalidStaticInvocation (String nameOKEmpty) {
1287
+ if (nameOKEmpty == null || nameOKEmpty.isEmpty) nameOKEmpty = '(unnamed)' ;
1289
1288
return new Message (codeConstEvalInvalidStaticInvocation,
1290
1289
message:
1291
- """The invocation of '${name }' is not allowed in a constant expression.""" ,
1292
- arguments: {'name ' : name });
1290
+ """The invocation of '${nameOKEmpty }' is not allowed in a constant expression.""" ,
1291
+ arguments: {'nameOKEmpty ' : nameOKEmpty });
1293
1292
}
1294
1293
1295
1294
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
@@ -1328,27 +1327,27 @@ Message _withArgumentsConstEvalNegativeShift(
1328
1327
const Template <
1329
1328
Message Function (
1330
1329
String
1331
- string )> templateConstEvalNonConstantVariableGet = const Template <
1332
- Message Function (String string )>(
1330
+ nameOKEmpty )> templateConstEvalNonConstantVariableGet = const Template <
1331
+ Message Function (String nameOKEmpty )>(
1333
1332
messageTemplate:
1334
- r"""The variable '#string ' is not a constant, only constant expressions are allowed.""" ,
1333
+ r"""The variable '#nameOKEmpty ' is not a constant, only constant expressions are allowed.""" ,
1335
1334
withArguments: _withArgumentsConstEvalNonConstantVariableGet);
1336
1335
1337
1336
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1338
- const Code <Message Function (String string )>
1337
+ const Code <Message Function (String nameOKEmpty )>
1339
1338
codeConstEvalNonConstantVariableGet =
1340
- const Code <Message Function (String string )>(
1339
+ const Code <Message Function (String nameOKEmpty )>(
1341
1340
"ConstEvalNonConstantVariableGet" ,
1342
1341
templateConstEvalNonConstantVariableGet,
1343
1342
analyzerCodes: < String > ["NON_CONSTANT_VALUE_IN_INITIALIZER" ]);
1344
1343
1345
1344
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1346
- Message _withArgumentsConstEvalNonConstantVariableGet (String string ) {
1347
- if (string .isEmpty) throw 'No string provided ' ;
1345
+ Message _withArgumentsConstEvalNonConstantVariableGet (String nameOKEmpty ) {
1346
+ if (nameOKEmpty == null || nameOKEmpty .isEmpty) nameOKEmpty = '(unnamed) ' ;
1348
1347
return new Message (codeConstEvalNonConstantVariableGet,
1349
1348
message:
1350
- """The variable '${string }' is not a constant, only constant expressions are allowed.""" ,
1351
- arguments: {'string ' : string });
1349
+ """The variable '${nameOKEmpty }' is not a constant, only constant expressions are allowed.""" ,
1350
+ arguments: {'nameOKEmpty ' : nameOKEmpty });
1352
1351
}
1353
1352
1354
1353
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
@@ -5820,6 +5819,30 @@ Message _withArgumentsLanguageVersionTooHigh(int count, int count2) {
5820
5819
arguments: {'count' : count, 'count2' : count2});
5821
5820
}
5822
5821
5822
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
5823
+ const Template <Message Function (String name)>
5824
+ templateLateDefinitelyAssignedError =
5825
+ const Template <Message Function (String name)>(
5826
+ messageTemplate:
5827
+ r"""Late final variable '#name' definitely assigned.""" ,
5828
+ withArguments: _withArgumentsLateDefinitelyAssignedError);
5829
+
5830
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
5831
+ const Code <Message Function (String name)> codeLateDefinitelyAssignedError =
5832
+ const Code <Message Function (String name)>(
5833
+ "LateDefinitelyAssignedError" ,
5834
+ templateLateDefinitelyAssignedError,
5835
+ );
5836
+
5837
+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
5838
+ Message _withArgumentsLateDefinitelyAssignedError (String name) {
5839
+ if (name.isEmpty) throw 'No name provided' ;
5840
+ name = demangleMixinApplicationName (name);
5841
+ return new Message (codeLateDefinitelyAssignedError,
5842
+ message: """Late final variable '${name }' definitely assigned.""" ,
5843
+ arguments: {'name' : name});
5844
+ }
5845
+
5823
5846
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
5824
5847
const Template <
5825
5848
Message Function (
@@ -6621,32 +6644,6 @@ const MessageCode messageNonInstanceTypeVariableUse = const MessageCode(
6621
6644
analyzerCodes: < String > ["TYPE_PARAMETER_REFERENCED_BY_STATIC" ],
6622
6645
message: r"""Can only use type variables in instance methods.""" );
6623
6646
6624
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6625
- const Template <Message Function (String name)>
6626
- templateNonNullableLateDefinitelyAssignedError =
6627
- const Template <Message Function (String name)>(
6628
- messageTemplate:
6629
- r"""Non-nullable late final variable '#name' definitely assigned.""" ,
6630
- withArguments: _withArgumentsNonNullableLateDefinitelyAssignedError);
6631
-
6632
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6633
- const Code <Message Function (String name)>
6634
- codeNonNullableLateDefinitelyAssignedError =
6635
- const Code <Message Function (String name)>(
6636
- "NonNullableLateDefinitelyAssignedError" ,
6637
- templateNonNullableLateDefinitelyAssignedError,
6638
- );
6639
-
6640
- // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6641
- Message _withArgumentsNonNullableLateDefinitelyAssignedError (String name) {
6642
- if (name.isEmpty) throw 'No name provided' ;
6643
- name = demangleMixinApplicationName (name);
6644
- return new Message (codeNonNullableLateDefinitelyAssignedError,
6645
- message:
6646
- """Non-nullable late final variable '${name }' definitely assigned.""" ,
6647
- arguments: {'name' : name});
6648
- }
6649
-
6650
6647
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
6651
6648
const Template <
6652
6649
Message Function (
0 commit comments