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

Unified 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 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 823753165a399c8520eee5ab487abb73f4c818e6..975737c7f7c940549abe0092a26d8b8c638640d7 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -998,6 +998,28 @@ Message _withArgumentsInternalProblemUnsupported(String name) {
arguments: {'name': name});
}
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Template<Message Function(String string)>
+ templateInternalVerificationError =
+ const Template<Message Function(String string)>(
+ messageTemplate:
+ r"""Verification of the generated program failed: #string.""",
+ withArguments: _withArgumentsInternalVerificationError);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(String string)> codeInternalVerificationError =
+ const Code<Message Function(String string)>(
+ "InternalVerificationError",
+ templateInternalVerificationError,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsInternalVerificationError(String string) {
+ return new Message(codeInternalVerificationError,
+ message: """Verification of the generated program failed: $string.""",
+ arguments: {'string': string});
+}
+
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeInvalidAwaitFor = messageInvalidAwaitFor;
@@ -1148,6 +1170,75 @@ const MessageCode messageMissingExponent = const MessageCode("MissingExponent",
tip:
r"""Make sure there is an exponent, and remove any whitespace before it.""");
+// 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 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 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 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> codeNamedFunctionExpression = messageNamedFunctionExpression;

Powered by Google App Engine
This is Rietveld 408576698