@@ -1370,6 +1370,77 @@ const MessageCode messageClassInClass = const MessageCode(
13701370 correctionMessage: r"""Try moving the class to the top-level.""",
13711371);
13721372
1373+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1374+ const Template<Message Function(String name)>
1375+ templateClassShouldBeListedAsCallableInDynamicInterface =
1376+ const Template<Message Function(String name)>(
1377+ "ClassShouldBeListedAsCallableInDynamicInterface",
1378+ problemMessageTemplate: r"""Cannot use class '#name' in a dynamic module.""",
1379+ correctionMessageTemplate:
1380+ r"""Try removing the reference to class '#name' or update the dynamic interface to list class '#name' as callable.""",
1381+ withArguments: _withArgumentsClassShouldBeListedAsCallableInDynamicInterface,
1382+ );
1383+
1384+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1385+ const Code<Message Function(String name)>
1386+ codeClassShouldBeListedAsCallableInDynamicInterface =
1387+ const Code<Message Function(String name)>(
1388+ "ClassShouldBeListedAsCallableInDynamicInterface",
1389+ );
1390+
1391+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1392+ Message _withArgumentsClassShouldBeListedAsCallableInDynamicInterface(
1393+ String name) {
1394+ if (name.isEmpty) throw 'No name provided';
1395+ name = demangleMixinApplicationName(name);
1396+ return new Message(
1397+ codeClassShouldBeListedAsCallableInDynamicInterface,
1398+ problemMessage: """Cannot use class '${name}' in a dynamic module.""",
1399+ correctionMessage:
1400+ """Try removing the reference to class '${name}' or update the dynamic interface to list class '${name}' as callable.""",
1401+ arguments: {
1402+ 'name': name,
1403+ },
1404+ );
1405+ }
1406+
1407+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1408+ const Template<Message Function(String name)>
1409+ templateClassShouldBeListedAsExtendableInDynamicInterface =
1410+ const Template<Message Function(String name)>(
1411+ "ClassShouldBeListedAsExtendableInDynamicInterface",
1412+ problemMessageTemplate:
1413+ r"""Cannot extend, implement or mix-in class '#name' in a dynamic module.""",
1414+ correctionMessageTemplate:
1415+ r"""Try removing the reference to class '#name' or update the dynamic interface to list class '#name' as extendable.""",
1416+ withArguments:
1417+ _withArgumentsClassShouldBeListedAsExtendableInDynamicInterface,
1418+ );
1419+
1420+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1421+ const Code<Message Function(String name)>
1422+ codeClassShouldBeListedAsExtendableInDynamicInterface =
1423+ const Code<Message Function(String name)>(
1424+ "ClassShouldBeListedAsExtendableInDynamicInterface",
1425+ );
1426+
1427+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1428+ Message _withArgumentsClassShouldBeListedAsExtendableInDynamicInterface(
1429+ String name) {
1430+ if (name.isEmpty) throw 'No name provided';
1431+ name = demangleMixinApplicationName(name);
1432+ return new Message(
1433+ codeClassShouldBeListedAsExtendableInDynamicInterface,
1434+ problemMessage:
1435+ """Cannot extend, implement or mix-in class '${name}' in a dynamic module.""",
1436+ correctionMessage:
1437+ """Try removing the reference to class '${name}' or update the dynamic interface to list class '${name}' as extendable.""",
1438+ arguments: {
1439+ 'name': name,
1440+ },
1441+ );
1442+ }
1443+
13731444// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
13741445const Code<Null> codeColonInPlaceOfIn = messageColonInPlaceOfIn;
13751446
@@ -2370,6 +2441,43 @@ const MessageCode messageConstructorNotSync = const MessageCode(
23702441 r"""Constructor bodies can't use 'async', 'async*', or 'sync*'.""",
23712442);
23722443
2444+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2445+ const Template<Message Function(String name)>
2446+ templateConstructorShouldBeListedAsCallableInDynamicInterface =
2447+ const Template<Message Function(String name)>(
2448+ "ConstructorShouldBeListedAsCallableInDynamicInterface",
2449+ problemMessageTemplate:
2450+ r"""Cannot invoke constructor '#name' from a dynamic module.""",
2451+ correctionMessageTemplate:
2452+ r"""Try removing the call or update the dynamic interface to list constructor '#name' as callable.""",
2453+ withArguments:
2454+ _withArgumentsConstructorShouldBeListedAsCallableInDynamicInterface,
2455+ );
2456+
2457+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2458+ const Code<Message Function(String name)>
2459+ codeConstructorShouldBeListedAsCallableInDynamicInterface =
2460+ const Code<Message Function(String name)>(
2461+ "ConstructorShouldBeListedAsCallableInDynamicInterface",
2462+ );
2463+
2464+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2465+ Message _withArgumentsConstructorShouldBeListedAsCallableInDynamicInterface(
2466+ String name) {
2467+ if (name.isEmpty) throw 'No name provided';
2468+ name = demangleMixinApplicationName(name);
2469+ return new Message(
2470+ codeConstructorShouldBeListedAsCallableInDynamicInterface,
2471+ problemMessage:
2472+ """Cannot invoke constructor '${name}' from a dynamic module.""",
2473+ correctionMessage:
2474+ """Try removing the call or update the dynamic interface to list constructor '${name}' as callable.""",
2475+ arguments: {
2476+ 'name': name,
2477+ },
2478+ );
2479+ }
2480+
23732481// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
23742482const Code<Null> codeConstructorTearOffWithTypeArguments =
23752483 messageConstructorTearOffWithTypeArguments;
@@ -3655,6 +3763,17 @@ Message _withArgumentsDuplicatedRecordTypeFieldNameContext(String name) {
36553763 );
36563764}
36573765
3766+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3767+ const Code<Null> codeDynamicCallsAreNotAllowedInDynamicModule =
3768+ messageDynamicCallsAreNotAllowedInDynamicModule;
3769+
3770+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3771+ const MessageCode messageDynamicCallsAreNotAllowedInDynamicModule =
3772+ const MessageCode(
3773+ "DynamicCallsAreNotAllowedInDynamicModule",
3774+ problemMessage: r"""Dynamic calls are not allowed in a dynamic module.""",
3775+ );
3776+
36583777// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
36593778const Code<Null> codeEmptyMapPattern = messageEmptyMapPattern;
36603779
@@ -11865,6 +11984,81 @@ Message _withArgumentsMemberNotFound(String name) {
1186511984 );
1186611985}
1186711986
11987+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
11988+ const Template<Message Function(String name)>
11989+ templateMemberShouldBeListedAsCallableInDynamicInterface =
11990+ const Template<Message Function(String name)>(
11991+ "MemberShouldBeListedAsCallableInDynamicInterface",
11992+ problemMessageTemplate:
11993+ r"""Cannot invoke member '#name' from a dynamic module.""",
11994+ correctionMessageTemplate:
11995+ r"""Try removing the call or update the dynamic interface to list member '#name' as callable.""",
11996+ withArguments: _withArgumentsMemberShouldBeListedAsCallableInDynamicInterface,
11997+ );
11998+
11999+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
12000+ const Code<Message Function(String name)>
12001+ codeMemberShouldBeListedAsCallableInDynamicInterface =
12002+ const Code<Message Function(String name)>(
12003+ "MemberShouldBeListedAsCallableInDynamicInterface",
12004+ );
12005+
12006+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
12007+ Message _withArgumentsMemberShouldBeListedAsCallableInDynamicInterface(
12008+ String name) {
12009+ if (name.isEmpty) throw 'No name provided';
12010+ name = demangleMixinApplicationName(name);
12011+ return new Message(
12012+ codeMemberShouldBeListedAsCallableInDynamicInterface,
12013+ problemMessage: """Cannot invoke member '${name}' from a dynamic module.""",
12014+ correctionMessage:
12015+ """Try removing the call or update the dynamic interface to list member '${name}' as callable.""",
12016+ arguments: {
12017+ 'name': name,
12018+ },
12019+ );
12020+ }
12021+
12022+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
12023+ const Template<Message Function(String name, String name2)>
12024+ templateMemberShouldBeListedAsCanBeOverriddenInDynamicInterface =
12025+ const Template<Message Function(String name, String name2)>(
12026+ "MemberShouldBeListedAsCanBeOverriddenInDynamicInterface",
12027+ problemMessageTemplate:
12028+ r"""Cannot override member '#name.#name2' in a dynamic module.""",
12029+ correctionMessageTemplate:
12030+ r"""Try removing the override or update the dynamic interface to list member '#name.#name2' as can-be-overridden.""",
12031+ withArguments:
12032+ _withArgumentsMemberShouldBeListedAsCanBeOverriddenInDynamicInterface,
12033+ );
12034+
12035+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
12036+ const Code<Message Function(String name, String name2)>
12037+ codeMemberShouldBeListedAsCanBeOverriddenInDynamicInterface =
12038+ const Code<Message Function(String name, String name2)>(
12039+ "MemberShouldBeListedAsCanBeOverriddenInDynamicInterface",
12040+ );
12041+
12042+ // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
12043+ Message _withArgumentsMemberShouldBeListedAsCanBeOverriddenInDynamicInterface(
12044+ String name, String name2) {
12045+ if (name.isEmpty) throw 'No name provided';
12046+ name = demangleMixinApplicationName(name);
12047+ if (name2.isEmpty) throw 'No name provided';
12048+ name2 = demangleMixinApplicationName(name2);
12049+ return new Message(
12050+ codeMemberShouldBeListedAsCanBeOverriddenInDynamicInterface,
12051+ problemMessage:
12052+ """Cannot override member '${name}.${name2}' in a dynamic module.""",
12053+ correctionMessage:
12054+ """Try removing the override or update the dynamic interface to list member '${name}.${name2}' as can-be-overridden.""",
12055+ arguments: {
12056+ 'name': name,
12057+ 'name2': name2,
12058+ },
12059+ );
12060+ }
12061+
1186812062// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1186912063const Code<Null> codeMemberWithSameNameAsClass =
1187012064 messageMemberWithSameNameAsClass;
0 commit comments