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

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

Issue 2978903002: Remove number from operator mismatch message. (Closed)
Patch Set: Add missing show clause. 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 | « no previous file | pkg/front_end/lib/src/fasta/source/outline_builder.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 ba010d8d801df7528fd8f72882f7cbeb77686bac..f6db11381134c2b7ef7b84971da8f028d56ff54f 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -1973,26 +1973,95 @@ 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)> templateOperatorMinusParameterMismatch = const Template<
+ Message Function(String name)>(
+ messageTemplate: r"""Operator '#name' should have zero or one parameter.""",
+ tipTemplate:
+ r"""With zero parameters, it has the syntactic form '-a', formally known as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally known as '-'.""",
+ withArguments: _withArgumentsOperatorMinusParameterMismatch);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+const Code<Message Function(String name)> codeOperatorMinusParameterMismatch =
+ const Code<Message Function(String name)>(
+ "OperatorMinusParameterMismatch",
+ templateOperatorMinusParameterMismatch,
+);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+Message _withArgumentsOperatorMinusParameterMismatch(String name) {
+ return new Message(codeOperatorMinusParameterMismatch,
+ message: """Operator '$name' should have zero or one parameter.""",
+ tip:
+ """With zero parameters, it has the syntactic form '-a', formally known as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally known as '-'.""",
+ arguments: {'name': name});
+}
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+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' should have exactly one parameter.""",
+ withArguments: _withArgumentsOperatorParameterMismatch1);
+
+// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
+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 _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' must have exactly #number parameters.""",
- withArguments: _withArgumentsOperatorParameterMismatch);
+ 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, int number)>
- codeOperatorParameterMismatch =
- const Code<Message Function(String name, int number)>(
- "OperatorParameterMismatch",
- templateOperatorParameterMismatch,
+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 _withArgumentsOperatorParameterMismatch(String name, int number) {
- return new Message(codeOperatorParameterMismatch,
- message: """Operator '$name' must have exactly $number parameters.""",
- arguments: {'name': name, 'number': number});
+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.
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/source/outline_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698