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

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

Issue 2980273002: Random improvements in error reporting. (Closed)
Patch Set: rebased 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
« no previous file with comments | « pkg/front_end/lib/src/base/processed_options.dart ('k') | pkg/front_end/lib/src/fasta/problems.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2a4795f40123f4aa703036dd1930e513add5d25c..505f593abaa7b2f573ee9ec65fc0a3dd1c191796 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -1325,23 +1325,23 @@ Message _withArgumentsImportHidesImport(String name, Uri uri_, Uri uri2_) {
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Template<Message Function(String string)> templateInputFileNotFound =
- const Template<Message Function(String string)>(
- messageTemplate: r"""Input file not found: #string.""",
+const Template<Message Function(Uri uri_)> templateInputFileNotFound =
+ const Template<Message Function(Uri uri_)>(
+ messageTemplate: r"""Input file not found: #uri.""",
withArguments: _withArgumentsInputFileNotFound);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Code<Message Function(String string)> codeInputFileNotFound =
- const Code<Message Function(String string)>(
+const Code<Message Function(Uri uri_)> codeInputFileNotFound =
+ const Code<Message Function(Uri uri_)>(
"InputFileNotFound",
templateInputFileNotFound,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-Message _withArgumentsInputFileNotFound(String string) {
+Message _withArgumentsInputFileNotFound(Uri uri_) {
+ String uri = relativizeUri(uri_);
return new Message(codeInputFileNotFound,
- message: """Input file not found: $string.""",
- arguments: {'string': string});
+ message: """Input file not found: $uri.""", arguments: {'uri': uri_});
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
@@ -1478,6 +1478,16 @@ Message _withArgumentsInternalProblemPrivateConstructorAccess(String name) {
arguments: {'name': name});
}
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Null> codeInternalProblemProvidedBothCompileSdkAndSdkSummary =
+ messageInternalProblemProvidedBothCompileSdkAndSdkSummary;
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const MessageCode messageInternalProblemProvidedBothCompileSdkAndSdkSummary =
+ const MessageCode("InternalProblemProvidedBothCompileSdkAndSdkSummary",
+ 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, String string)>
templateInternalProblemStackNotEmpty =
@@ -2459,43 +2469,44 @@ const MessageCode messageReturnTypeFunctionExpression = const MessageCode(
message: r"""A function expression can't have a return type.""");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Template<Message Function(String string)> templateSdkRootNotFound =
- const Template<Message Function(String string)>(
- messageTemplate: r"""SDK root directory not found: #string.""",
+const Template<Message Function(Uri uri_)> templateSdkRootNotFound =
+ const Template<Message Function(Uri uri_)>(
+ messageTemplate: r"""SDK root directory not found: #uri.""",
withArguments: _withArgumentsSdkRootNotFound);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Code<Message Function(String string)> codeSdkRootNotFound =
- const Code<Message Function(String string)>(
+const Code<Message Function(Uri uri_)> codeSdkRootNotFound =
+ const Code<Message Function(Uri uri_)>(
"SdkRootNotFound",
templateSdkRootNotFound,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-Message _withArgumentsSdkRootNotFound(String string) {
+Message _withArgumentsSdkRootNotFound(Uri uri_) {
+ String uri = relativizeUri(uri_);
return new Message(codeSdkRootNotFound,
- message: """SDK root directory not found: $string.""",
- arguments: {'string': string});
+ message: """SDK root directory not found: $uri.""",
+ arguments: {'uri': uri_});
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Template<Message Function(String string)> templateSdkSummaryNotFound =
- const Template<Message Function(String string)>(
- messageTemplate: r"""SDK summary not found: #string.""",
+const Template<Message Function(Uri uri_)> templateSdkSummaryNotFound =
+ const Template<Message Function(Uri uri_)>(
+ messageTemplate: r"""SDK summary not found: #uri.""",
withArguments: _withArgumentsSdkSummaryNotFound);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Code<Message Function(String string)> codeSdkSummaryNotFound =
- const Code<Message Function(String string)>(
+const Code<Message Function(Uri uri_)> codeSdkSummaryNotFound =
+ const Code<Message Function(Uri uri_)>(
"SdkSummaryNotFound",
templateSdkSummaryNotFound,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-Message _withArgumentsSdkSummaryNotFound(String string) {
+Message _withArgumentsSdkSummaryNotFound(Uri uri_) {
+ String uri = relativizeUri(uri_);
return new Message(codeSdkSummaryNotFound,
- message: """SDK summary not found: $string.""",
- arguments: {'string': string});
+ message: """SDK summary not found: $uri.""", arguments: {'uri': uri_});
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
« no previous file with comments | « pkg/front_end/lib/src/base/processed_options.dart ('k') | pkg/front_end/lib/src/fasta/problems.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698