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

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

Issue 2978903002: Remove number from operator mismatch message. (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 be99f5bc9a1bc906158e19f7c6c5b904d1bdbfe0..10d22584ac283d5c7f2dc7b3339efa4870d323b5 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -1941,26 +1941,68 @@ const MessageCode messageOnlyTry = const MessageCode("OnlyTry",
tip: r"""Did you forget to add a 'finally' block?""");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Template<Message Function(String name, int number)>
- templateOperatorParameterMismatch =
- const Template<Message Function(String name, int number)>(
+const Template<Message Function(String name)>
+ templateOperatorParameterMismatch0 =
+ const Template<Message Function(String name)>(
+ messageTemplate: r"""Operator '#name' shouldn't have any parameters.""",
+ withArguments: _withArgumentsOperatorParameterMismatch0);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(String name)> codeOperatorParameterMismatch0 =
+ const Code<Message Function(String name)>(
+ "OperatorParameterMismatch0",
+ templateOperatorParameterMismatch0,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsOperatorParameterMismatch0(String name) {
+ return new Message(codeOperatorParameterMismatch0,
+ message: """Operator '$name' shouldn't have any parameters.""",
+ arguments: {'name': name});
+}
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Template<Message Function(String name)>
+ templateOperatorParameterMismatch1 =
+ const Template<Message Function(String name)>(
messageTemplate:
- r"""Operator '#name' must have exactly #number parameters.""",
- withArguments: _withArgumentsOperatorParameterMismatch);
+ r"""Operator '#name' should have exactly one parameter.""",
+ withArguments: _withArgumentsOperatorParameterMismatch1);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Code<Message Function(String name, int number)>
- codeOperatorParameterMismatch =
- const Code<Message Function(String name, int number)>(
- "OperatorParameterMismatch",
- templateOperatorParameterMismatch,
+const Code<Message Function(String name)> codeOperatorParameterMismatch1 =
+ const Code<Message Function(String name)>(
+ "OperatorParameterMismatch1",
+ templateOperatorParameterMismatch1,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-Message _withArgumentsOperatorParameterMismatch(String name, int number) {
- return new Message(codeOperatorParameterMismatch,
- message: """Operator '$name' must have exactly $number parameters.""",
- arguments: {'name': name, 'number': number});
+Message _withArgumentsOperatorParameterMismatch1(String name) {
+ return new Message(codeOperatorParameterMismatch1,
+ message: """Operator '$name' should have exactly one parameter.""",
+ arguments: {'name': name});
+}
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Template<Message Function(String name)>
+ templateOperatorParameterMismatch2 =
+ const Template<Message Function(String name)>(
+ messageTemplate:
+ r"""Operator '#name' should have exactly two parameters.""",
+ withArguments: _withArgumentsOperatorParameterMismatch2);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(String name)> codeOperatorParameterMismatch2 =
+ const Code<Message Function(String name)>(
+ "OperatorParameterMismatch2",
+ templateOperatorParameterMismatch2,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsOperatorParameterMismatch2(String name) {
+ return new Message(codeOperatorParameterMismatch2,
+ message: """Operator '$name' should have exactly two parameters.""",
+ arguments: {'name': name});
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.

Powered by Google App Engine
This is Rietveld 408576698