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

Unified Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

Issue 2979623002: Use messages for (some) public API errors (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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
diff --git a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
index a42b452aaa5017471f8bf55c7f4da07e75bf49c3..04b9cf4330d992978f47ffda7f87d0f0b0ae9233 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -112,6 +112,26 @@ const MessageCode messageAwaitAsIdentifier = const MessageCode(
message:
r"""'await' can't be used as an identifier in 'async', 'async*', or 'sync*' methods.""");
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Template<Message Function(String string)> templateMissingSdkSummary =
+ const Template<Message Function(String string)>(
+ messageTemplate: r"""SDK summary not found: #string.""",
+ withArguments: _withArgumentsMissingSdkSummary);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(String string)> codeMissingSdkSummary =
+ const Code<Message Function(String string)>(
+ "MissingSdkSummary",
+ templateMissingSdkSummary,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsMissingSdkSummary(String string) {
+ return new Message(codeMissingSdkSummary,
+ message: """SDK summary not found: $string.""",
+ arguments: {'string': string});
+}
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeFactoryNotSync = messageFactoryNotSync;
@@ -322,6 +342,16 @@ const MessageCode messageEmptyOptionalParameterList = const MessageCode(
message: r"""Optional parameter lists cannot be empty.""",
tip: r"""Try adding an optional parameter to the list.""");
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Null> codeCombinedCompileSdkAndSummary =
+ messageCombinedCompileSdkAndSummary;
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const MessageCode messageCombinedCompileSdkAndSummary = const MessageCode(
+ "CombinedCompileSdkAndSummary",
+ message:
+ r"""The compileSdk and sdkSummary options are mutually exclusive""");
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateTypeNotFound =
const Template<Message Function(String name)>(
@@ -439,6 +469,29 @@ Message _withArgumentsExpectedString(Token token) {
arguments: {'token': token});
}
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Template<
+ Message Function(String string)> templateVerificationError = const Template<
+ Message Function(String string)>(
+ messageTemplate:
+ r"""An internal error was found while verifying the output of the compiler. #string""",
+ withArguments: _withArgumentsVerificationError);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(String string)> codeVerificationError =
+ const Code<Message Function(String string)>(
+ "VerificationError",
+ templateVerificationError,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsVerificationError(String string) {
+ return new Message(codeVerificationError,
+ message:
+ """An internal error was found while verifying the output of the compiler. $string""",
+ arguments: {'string': string});
+}
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeFastaUsageShort = messageFastaUsageShort;
@@ -765,6 +818,26 @@ const MessageCode messageInvalidAwaitFor = const MessageCode("InvalidAwaitFor",
tip:
r"""Try adding 'async' or 'async*' to the method body or removing the 'await' keyword.""");
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Template<Message Function(String string)> templateMissingInputFile =
+ const Template<Message Function(String string)>(
+ messageTemplate: r"""Input file not found: #string.""",
+ withArguments: _withArgumentsMissingInputFile);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(String string)> codeMissingInputFile =
+ const Code<Message Function(String string)>(
+ "MissingInputFile",
+ templateMissingInputFile,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsMissingInputFile(String string) {
+ return new Message(codeMissingInputFile,
+ message: """Input file not found: $string.""",
+ arguments: {'string': string});
+}
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(Token token)> templateExpectedType =
const Template<Message Function(Token token)>(
@@ -901,6 +974,15 @@ const MessageCode messageFastaUsageLong =
internal stack trace from the compiler. Multiple kinds can be separated by
commas, for example, --fatal=errors,warnings.""");
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Null> codeMissingMain = messageMissingMain;
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const MessageCode messageMissingMain = const MessageCode("MissingMain",
+ dart2jsCode: "MISSING_MAIN",
+ message: r"""No 'main' method found.""",
+ tip: r"""Try adding a method named 'main' to your program.""");
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAwaitForNotAsync = messageAwaitForNotAsync;
@@ -997,6 +1079,26 @@ const MessageCode messageTypeRequired = const MessageCode("TypeRequired",
message: r"""A type or modifier is required here.""",
tip: r"""Try adding a type, 'var', 'const', or 'final'.""");
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Template<Message Function(String string)> templateMissingSdkRoot =
+ const Template<Message Function(String string)>(
+ messageTemplate: r"""SDK root directory not found: #string.""",
+ withArguments: _withArgumentsMissingSdkRoot);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(String string)> codeMissingSdkRoot =
+ const Code<Message Function(String string)>(
+ "MissingSdkRoot",
+ templateMissingSdkRoot,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsMissingSdkRoot(String string) {
+ return new Message(codeMissingSdkRoot,
+ message: """SDK root directory not found: $string.""",
+ arguments: {'string': string});
+}
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeInvalidVoid = messageInvalidVoid;

Powered by Google App Engine
This is Rietveld 408576698