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

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

Issue 2979623002: Use messages for (some) public API errors (Closed)
Patch Set: cl comments 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 ); 992 );
993 993
994 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 994 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
995 Message _withArgumentsInternalProblemUnsupported(String name) { 995 Message _withArgumentsInternalProblemUnsupported(String name) {
996 return new Message(codeInternalProblemUnsupported, 996 return new Message(codeInternalProblemUnsupported,
997 message: """Unsupported operation: '$name'.""", 997 message: """Unsupported operation: '$name'.""",
998 arguments: {'name': name}); 998 arguments: {'name': name});
999 } 999 }
1000 1000
1001 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1001 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1002 const Template<Message Function(String string)>
1003 templateInternalVerificationError =
1004 const Template<Message Function(String string)>(
1005 messageTemplate:
1006 r"""Verification of the generated program failed: #string.""",
1007 withArguments: _withArgumentsInternalVerificationError);
1008
1009 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1010 const Code<Message Function(String string)> codeInternalVerificationError =
1011 const Code<Message Function(String string)>(
1012 "InternalVerificationError",
1013 templateInternalVerificationError,
1014 );
1015
1016 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1017 Message _withArgumentsInternalVerificationError(String string) {
1018 return new Message(codeInternalVerificationError,
1019 message: """Verification of the generated program failed: $string.""",
1020 arguments: {'string': string});
1021 }
1022
1023 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1002 const Code<Null> codeInvalidAwaitFor = messageInvalidAwaitFor; 1024 const Code<Null> codeInvalidAwaitFor = messageInvalidAwaitFor;
1003 1025
1004 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1026 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1005 const MessageCode messageInvalidAwaitFor = const MessageCode("InvalidAwaitFor", 1027 const MessageCode messageInvalidAwaitFor = const MessageCode("InvalidAwaitFor",
1006 dart2jsCode: "INVALID_AWAIT_FOR", 1028 dart2jsCode: "INVALID_AWAIT_FOR",
1007 message: 1029 message:
1008 r"""'await' is only supported in methods with an 'async' or 'async*' bod y modifier.""", 1030 r"""'await' is only supported in methods with an 'async' or 'async*' bod y modifier.""",
1009 tip: 1031 tip:
1010 r"""Try adding 'async' or 'async*' to the method body or removing the 'a wait' keyword."""); 1032 r"""Try adding 'async' or 'async*' to the method body or removing the 'a wait' keyword.""");
1011 1033
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1164 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1143 const MessageCode messageMissingExponent = const MessageCode("MissingExponent", 1165 const MessageCode messageMissingExponent = const MessageCode("MissingExponent",
1144 analyzerCode: "MISSING_DIGIT", 1166 analyzerCode: "MISSING_DIGIT",
1145 dart2jsCode: "EXPONENT_MISSING", 1167 dart2jsCode: "EXPONENT_MISSING",
1146 message: 1168 message:
1147 r"""Numbers in exponential notation should always contain an exponent (a n integer number with an optional sign).""", 1169 r"""Numbers in exponential notation should always contain an exponent (a n integer number with an optional sign).""",
1148 tip: 1170 tip:
1149 r"""Make sure there is an exponent, and remove any whitespace before it. """); 1171 r"""Make sure there is an exponent, and remove any whitespace before it. """);
1150 1172
1151 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1173 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1174 const Template<Message Function(String string)> templateMissingInputFile =
1175 const Template<Message Function(String string)>(
1176 messageTemplate: r"""Input file not found: #string.""",
1177 withArguments: _withArgumentsMissingInputFile);
1178
1179 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1180 const Code<Message Function(String string)> codeMissingInputFile =
1181 const Code<Message Function(String string)>(
1182 "MissingInputFile",
1183 templateMissingInputFile,
1184 );
1185
1186 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1187 Message _withArgumentsMissingInputFile(String string) {
1188 return new Message(codeMissingInputFile,
1189 message: """Input file not found: $string.""",
1190 arguments: {'string': string});
1191 }
1192
1193 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1194 const Code<Null> codeMissingMain = messageMissingMain;
1195
1196 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1197 const MessageCode messageMissingMain = const MessageCode("MissingMain",
1198 dart2jsCode: "MISSING_MAIN",
1199 message: r"""No 'main' method found.""",
1200 tip: r"""Try adding a method named 'main' to your program.""");
1201
1202 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1203 const Template<Message Function(String string)> templateMissingSdkRoot =
1204 const Template<Message Function(String string)>(
1205 messageTemplate: r"""SDK root directory not found: #string.""",
1206 withArguments: _withArgumentsMissingSdkRoot);
1207
1208 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1209 const Code<Message Function(String string)> codeMissingSdkRoot =
1210 const Code<Message Function(String string)>(
1211 "MissingSdkRoot",
1212 templateMissingSdkRoot,
1213 );
1214
1215 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1216 Message _withArgumentsMissingSdkRoot(String string) {
1217 return new Message(codeMissingSdkRoot,
1218 message: """SDK root directory not found: $string.""",
1219 arguments: {'string': string});
1220 }
1221
1222 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1223 const Template<Message Function(String string)> templateMissingSdkSummary =
1224 const Template<Message Function(String string)>(
1225 messageTemplate: r"""SDK summary not found: #string.""",
1226 withArguments: _withArgumentsMissingSdkSummary);
1227
1228 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1229 const Code<Message Function(String string)> codeMissingSdkSummary =
1230 const Code<Message Function(String string)>(
1231 "MissingSdkSummary",
1232 templateMissingSdkSummary,
1233 );
1234
1235 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1236 Message _withArgumentsMissingSdkSummary(String string) {
1237 return new Message(codeMissingSdkSummary,
1238 message: """SDK summary not found: $string.""",
1239 arguments: {'string': string});
1240 }
1241
1242 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1152 const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression; 1243 const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression;
1153 1244
1154 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1245 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1155 const MessageCode messageNamedFunctionExpression = const MessageCode( 1246 const MessageCode messageNamedFunctionExpression = const MessageCode(
1156 "NamedFunctionExpression", 1247 "NamedFunctionExpression",
1157 dart2jsCode: "*ignored*", 1248 dart2jsCode: "*ignored*",
1158 message: r"""A function expression can't have a name."""); 1249 message: r"""A function expression can't have a name.""");
1159 1250
1160 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1251 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1161 const Template< 1252 const Template<
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods."""); 1638 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods.""");
1548 1639
1549 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1640 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1550 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; 1641 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator;
1551 1642
1552 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1643 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1553 const MessageCode messageYieldNotGenerator = const MessageCode( 1644 const MessageCode messageYieldNotGenerator = const MessageCode(
1554 "YieldNotGenerator", 1645 "YieldNotGenerator",
1555 dart2jsCode: "*ignored*", 1646 dart2jsCode: "*ignored*",
1556 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); 1647 message: r"""'yield' can only be used in 'sync*' or 'async*' methods.""");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698