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

Side by Side Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

Issue 2976753002: Remove deprecated_addNit. (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
6 // 6 //
7 // Instead modify 'pkg/front_end/messages.yaml' and run 7 // Instead modify 'pkg/front_end/messages.yaml' and run
8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update.
9 9
10 part of fasta.codes; 10 part of fasta.codes;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 ); 218 );
219 219
220 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 220 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
221 Message _withArgumentsCyclicTypedef(String name) { 221 Message _withArgumentsCyclicTypedef(String name) {
222 return new Message(codeCyclicTypedef, 222 return new Message(codeCyclicTypedef,
223 message: """The typedef '$name' has a reference to itself.""", 223 message: """The typedef '$name' has a reference to itself.""",
224 arguments: {'name': name}); 224 arguments: {'name': name});
225 } 225 }
226 226
227 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 227 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
228 const Template<Message Function(String name, Uri uri_, Uri uri2_)>
229 templateDuplicatedExport =
230 const Template<Message Function(String name, Uri uri_, Uri uri2_)>(
231 messageTemplate:
232 r"""'#name' is exported from both '#uri' and '#uri2'.""",
233 withArguments: _withArgumentsDuplicatedExport);
234
235 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
236 const Code<Message Function(String name, Uri uri_, Uri uri2_)>
237 codeDuplicatedExport =
238 const Code<Message Function(String name, Uri uri_, Uri uri2_)>(
239 "DuplicatedExport",
240 templateDuplicatedExport,
241 );
242
243 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
244 Message _withArgumentsDuplicatedExport(String name, Uri uri_, Uri uri2_) {
245 String uri = relativizeUri(uri_);
246 String uri2 = relativizeUri(uri2_);
247 return new Message(codeDuplicatedExport,
248 message: """'$name' is exported from both '$uri' and '$uri2'.""",
249 arguments: {'name': name, 'uri': uri_, 'uri2': uri2_});
250 }
251
252 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
253 const Template<Message Function(String name, Uri uri_, Uri uri2_)>
254 templateDuplicatedImport =
255 const Template<Message Function(String name, Uri uri_, Uri uri2_)>(
256 messageTemplate:
257 r"""'#name' is imported from both '#uri' and '#uri2'.""",
258 withArguments: _withArgumentsDuplicatedImport);
259
260 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
261 const Code<Message Function(String name, Uri uri_, Uri uri2_)>
262 codeDuplicatedImport =
263 const Code<Message Function(String name, Uri uri_, Uri uri2_)>(
264 "DuplicatedImport",
265 templateDuplicatedImport,
266 );
267
268 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
269 Message _withArgumentsDuplicatedImport(String name, Uri uri_, Uri uri2_) {
270 String uri = relativizeUri(uri_);
271 String uri2 = relativizeUri(uri2_);
272 return new Message(codeDuplicatedImport,
273 message: """'$name' is imported from both '$uri' and '$uri2'.""",
274 arguments: {'name': name, 'uri': uri_, 'uri2': uri2_});
275 }
276
277 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
228 const Code<Null> codeEmptyNamedParameterList = messageEmptyNamedParameterList; 278 const Code<Null> codeEmptyNamedParameterList = messageEmptyNamedParameterList;
229 279
230 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 280 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
231 const MessageCode messageEmptyNamedParameterList = const MessageCode( 281 const MessageCode messageEmptyNamedParameterList = const MessageCode(
232 "EmptyNamedParameterList", 282 "EmptyNamedParameterList",
233 dart2jsCode: "EMPTY_NAMED_PARAMETER_LIST", 283 dart2jsCode: "EMPTY_NAMED_PARAMETER_LIST",
234 message: r"""Named parameter lists cannot be empty.""", 284 message: r"""Named parameter lists cannot be empty.""",
235 tip: r"""Try adding a named parameter to the list."""); 285 tip: r"""Try adding a named parameter to the list.""");
236 286
237 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 287 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 518
469 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 519 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
470 Message _withArgumentsExpectedType(Token token) { 520 Message _withArgumentsExpectedType(Token token) {
471 String lexeme = token.lexeme; 521 String lexeme = token.lexeme;
472 return new Message(codeExpectedType, 522 return new Message(codeExpectedType,
473 message: """Expected a type, but got '$lexeme'.""", 523 message: """Expected a type, but got '$lexeme'.""",
474 arguments: {'token': token}); 524 arguments: {'token': token});
475 } 525 }
476 526
477 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 527 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
528 const Template<Message Function(String name, Uri uri_, Uri uri2_)>
529 templateExportHidesExport =
530 const Template<Message Function(String name, Uri uri_, Uri uri2_)>(
531 messageTemplate:
532 r"""Export of '#name' (from '#uri') hides export from '#uri2'.""",
533 withArguments: _withArgumentsExportHidesExport);
534
535 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
536 const Code<Message Function(String name, Uri uri_, Uri uri2_)>
537 codeExportHidesExport =
538 const Code<Message Function(String name, Uri uri_, Uri uri2_)>(
539 "ExportHidesExport",
540 templateExportHidesExport,
541 );
542
543 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
544 Message _withArgumentsExportHidesExport(String name, Uri uri_, Uri uri2_) {
545 String uri = relativizeUri(uri_);
546 String uri2 = relativizeUri(uri2_);
547 return new Message(codeExportHidesExport,
548 message: """Export of '$name' (from '$uri') hides export from '$uri2'.""",
549 arguments: {'name': name, 'uri': uri_, 'uri2': uri2_});
550 }
551
552 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
478 const Template<Message Function(Token token)> templateExtraneousModifier = 553 const Template<Message Function(Token token)> templateExtraneousModifier =
479 const Template<Message Function(Token token)>( 554 const Template<Message Function(Token token)>(
480 messageTemplate: r"""Can't have modifier '#lexeme' here.""", 555 messageTemplate: r"""Can't have modifier '#lexeme' here.""",
481 tipTemplate: r"""Try removing '#lexeme'.""", 556 tipTemplate: r"""Try removing '#lexeme'.""",
482 withArguments: _withArgumentsExtraneousModifier); 557 withArguments: _withArgumentsExtraneousModifier);
483 558
484 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 559 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
485 const Code<Message Function(Token token)> codeExtraneousModifier = 560 const Code<Message Function(Token token)> codeExtraneousModifier =
486 const Code<Message Function(Token token)>( 561 const Code<Message Function(Token token)>(
487 "ExtraneousModifier", templateExtraneousModifier, 562 "ExtraneousModifier", templateExtraneousModifier,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 const Code<Null> codeGetterWithFormals = messageGetterWithFormals; 716 const Code<Null> codeGetterWithFormals = messageGetterWithFormals;
642 717
643 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 718 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
644 const MessageCode messageGetterWithFormals = const MessageCode( 719 const MessageCode messageGetterWithFormals = const MessageCode(
645 "GetterWithFormals", 720 "GetterWithFormals",
646 dart2jsCode: "*ignored*", 721 dart2jsCode: "*ignored*",
647 message: r"""A getter can't have formal parameters.""", 722 message: r"""A getter can't have formal parameters.""",
648 tip: r"""Try removing '(...)'."""); 723 tip: r"""Try removing '(...)'.""");
649 724
650 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 725 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
726 const Template<Message Function(String name, Uri uri_, Uri uri2_)>
727 templateImportHidesImport =
728 const Template<Message Function(String name, Uri uri_, Uri uri2_)>(
729 messageTemplate:
730 r"""Import of '#name' (from '#uri') hides import from '#uri2'.""",
731 withArguments: _withArgumentsImportHidesImport);
732
733 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
734 const Code<Message Function(String name, Uri uri_, Uri uri2_)>
735 codeImportHidesImport =
736 const Code<Message Function(String name, Uri uri_, Uri uri2_)>(
737 "ImportHidesImport",
738 templateImportHidesImport,
739 );
740
741 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
742 Message _withArgumentsImportHidesImport(String name, Uri uri_, Uri uri2_) {
743 String uri = relativizeUri(uri_);
744 String uri2 = relativizeUri(uri2_);
745 return new Message(codeImportHidesImport,
746 message: """Import of '$name' (from '$uri') hides import from '$uri2'.""",
747 arguments: {'name': name, 'uri': uri_, 'uri2': uri2_});
748 }
749
750 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
651 const Code<Null> codeInternalProblemAlreadyInitialized = 751 const Code<Null> codeInternalProblemAlreadyInitialized =
652 messageInternalProblemAlreadyInitialized; 752 messageInternalProblemAlreadyInitialized;
653 753
654 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 754 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
655 const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode( 755 const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode(
656 "InternalProblemAlreadyInitialized", 756 "InternalProblemAlreadyInitialized",
657 message: r"""Attempt to set initializer on field without initializer."""); 757 message: r"""Attempt to set initializer on field without initializer.""");
658 758
659 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 759 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
660 const Code<Null> codeInternalProblemBodyOnAbstractMethod = 760 const Code<Null> codeInternalProblemBodyOnAbstractMethod =
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1054 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
955 const Code<Null> codeListLiteralTypeArgumentMismatch = 1055 const Code<Null> codeListLiteralTypeArgumentMismatch =
956 messageListLiteralTypeArgumentMismatch; 1056 messageListLiteralTypeArgumentMismatch;
957 1057
958 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1058 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
959 const MessageCode messageListLiteralTypeArgumentMismatch = const MessageCode( 1059 const MessageCode messageListLiteralTypeArgumentMismatch = const MessageCode(
960 "ListLiteralTypeArgumentMismatch", 1060 "ListLiteralTypeArgumentMismatch",
961 message: r"""Map literal requires two type arguments."""); 1061 message: r"""Map literal requires two type arguments.""");
962 1062
963 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1063 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1064 const Template<Message Function(String name, Uri uri_)>
1065 templateLocalDefinitionHidesExport =
1066 const Template<Message Function(String name, Uri uri_)>(
1067 messageTemplate:
1068 r"""Local definition of '#name' hides export from '#uri'.""",
1069 withArguments: _withArgumentsLocalDefinitionHidesExport);
1070
1071 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1072 const Code<Message Function(String name, Uri uri_)>
1073 codeLocalDefinitionHidesExport =
1074 const Code<Message Function(String name, Uri uri_)>(
1075 "LocalDefinitionHidesExport",
1076 templateLocalDefinitionHidesExport,
1077 );
1078
1079 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1080 Message _withArgumentsLocalDefinitionHidesExport(String name, Uri uri_) {
1081 String uri = relativizeUri(uri_);
1082 return new Message(codeLocalDefinitionHidesExport,
1083 message: """Local definition of '$name' hides export from '$uri'.""",
1084 arguments: {'name': name, 'uri': uri_});
1085 }
1086
1087 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1088 const Template<Message Function(String name, Uri uri_)>
1089 templateLocalDefinitionHidesImport =
1090 const Template<Message Function(String name, Uri uri_)>(
1091 messageTemplate:
1092 r"""Local definition of '#name' hides import from '#uri'.""",
1093 withArguments: _withArgumentsLocalDefinitionHidesImport);
1094
1095 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1096 const Code<Message Function(String name, Uri uri_)>
1097 codeLocalDefinitionHidesImport =
1098 const Code<Message Function(String name, Uri uri_)>(
1099 "LocalDefinitionHidesImport",
1100 templateLocalDefinitionHidesImport,
1101 );
1102
1103 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1104 Message _withArgumentsLocalDefinitionHidesImport(String name, Uri uri_) {
1105 String uri = relativizeUri(uri_);
1106 return new Message(codeLocalDefinitionHidesImport,
1107 message: """Local definition of '$name' hides import from '$uri'.""",
1108 arguments: {'name': name, 'uri': uri_});
1109 }
1110
1111 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
964 const Code<Null> codeMetadataTypeArguments = messageMetadataTypeArguments; 1112 const Code<Null> codeMetadataTypeArguments = messageMetadataTypeArguments;
965 1113
966 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1114 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
967 const MessageCode messageMetadataTypeArguments = const MessageCode( 1115 const MessageCode messageMetadataTypeArguments = const MessageCode(
968 "MetadataTypeArguments", 1116 "MetadataTypeArguments",
969 dart2jsCode: "*ignored*", 1117 dart2jsCode: "*ignored*",
970 message: r"""An annotation (metadata) can't use type arguments."""); 1118 message: r"""An annotation (metadata) can't use type arguments.""");
971 1119
972 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1120 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
973 const Template<Message Function(String name)> templateMethodNotFound = 1121 const Template<Message Function(String name)> templateMethodNotFound =
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods."""); 1547 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods.""");
1400 1548
1401 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1549 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1402 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; 1550 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator;
1403 1551
1404 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1552 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1405 const MessageCode messageYieldNotGenerator = const MessageCode( 1553 const MessageCode messageYieldNotGenerator = const MessageCode(
1406 "YieldNotGenerator", 1554 "YieldNotGenerator",
1407 dart2jsCode: "*ignored*", 1555 dart2jsCode: "*ignored*",
1408 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); 1556 message: r"""'yield' can only be used in 'sync*' or 'async*' methods.""");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698