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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
6 // 6 //
7 // Instead modify 'pkg/front_end/messages.yaml' and run 7 // Instead modify 'pkg/front_end/messages.yaml' and run
8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update.
9 9
10 part of fasta.codes; 10 part of fasta.codes;
(...skipping 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 const Code<Null> codeOnlyTry = messageOnlyTry; 1934 const Code<Null> codeOnlyTry = messageOnlyTry;
1935 1935
1936 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1936 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1937 const MessageCode messageOnlyTry = const MessageCode("OnlyTry", 1937 const MessageCode messageOnlyTry = const MessageCode("OnlyTry",
1938 dart2jsCode: "*ignored*", 1938 dart2jsCode: "*ignored*",
1939 message: 1939 message:
1940 r"""Try block should be followed by 'on', 'catch', or 'finally' block."" ", 1940 r"""Try block should be followed by 'on', 'catch', or 'finally' block."" ",
1941 tip: r"""Did you forget to add a 'finally' block?"""); 1941 tip: r"""Did you forget to add a 'finally' block?""");
1942 1942
1943 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1943 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1944 const Template<Message Function(String name, int number)> 1944 const Template<Message Function(String name)>
1945 templateOperatorParameterMismatch = 1945 templateOperatorParameterMismatch0 =
1946 const Template<Message Function(String name, int number)>( 1946 const Template<Message Function(String name)>(
1947 messageTemplate: 1947 messageTemplate: r"""Operator '#name' shouldn't have any parameters.""",
1948 r"""Operator '#name' must have exactly #number parameters.""", 1948 withArguments: _withArgumentsOperatorParameterMismatch0);
1949 withArguments: _withArgumentsOperatorParameterMismatch);
1950 1949
1951 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1950 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1952 const Code<Message Function(String name, int number)> 1951 const Code<Message Function(String name)> codeOperatorParameterMismatch0 =
1953 codeOperatorParameterMismatch = 1952 const Code<Message Function(String name)>(
1954 const Code<Message Function(String name, int number)>( 1953 "OperatorParameterMismatch0",
1955 "OperatorParameterMismatch", 1954 templateOperatorParameterMismatch0,
1956 templateOperatorParameterMismatch,
1957 ); 1955 );
1958 1956
1959 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1957 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1960 Message _withArgumentsOperatorParameterMismatch(String name, int number) { 1958 Message _withArgumentsOperatorParameterMismatch0(String name) {
1961 return new Message(codeOperatorParameterMismatch, 1959 return new Message(codeOperatorParameterMismatch0,
1962 message: """Operator '$name' must have exactly $number parameters.""", 1960 message: """Operator '$name' shouldn't have any parameters.""",
1963 arguments: {'name': name, 'number': number}); 1961 arguments: {'name': name});
1964 } 1962 }
1965 1963
1966 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1964 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1965 const Template<Message Function(String name)>
1966 templateOperatorParameterMismatch1 =
1967 const Template<Message Function(String name)>(
1968 messageTemplate:
1969 r"""Operator '#name' should have exactly one parameter.""",
1970 withArguments: _withArgumentsOperatorParameterMismatch1);
1971
1972 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1973 const Code<Message Function(String name)> codeOperatorParameterMismatch1 =
1974 const Code<Message Function(String name)>(
1975 "OperatorParameterMismatch1",
1976 templateOperatorParameterMismatch1,
1977 );
1978
1979 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1980 Message _withArgumentsOperatorParameterMismatch1(String name) {
1981 return new Message(codeOperatorParameterMismatch1,
1982 message: """Operator '$name' should have exactly one parameter.""",
1983 arguments: {'name': name});
1984 }
1985
1986 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1987 const Template<Message Function(String name)>
1988 templateOperatorParameterMismatch2 =
1989 const Template<Message Function(String name)>(
1990 messageTemplate:
1991 r"""Operator '#name' should have exactly two parameters.""",
1992 withArguments: _withArgumentsOperatorParameterMismatch2);
1993
1994 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1995 const Code<Message Function(String name)> codeOperatorParameterMismatch2 =
1996 const Code<Message Function(String name)>(
1997 "OperatorParameterMismatch2",
1998 templateOperatorParameterMismatch2,
1999 );
2000
2001 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2002 Message _withArgumentsOperatorParameterMismatch2(String name) {
2003 return new Message(codeOperatorParameterMismatch2,
2004 message: """Operator '$name' should have exactly two parameters.""",
2005 arguments: {'name': name});
2006 }
2007
2008 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1967 const Code<Null> codeOperatorWithOptionalFormals = 2009 const Code<Null> codeOperatorWithOptionalFormals =
1968 messageOperatorWithOptionalFormals; 2010 messageOperatorWithOptionalFormals;
1969 2011
1970 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2012 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1971 const MessageCode messageOperatorWithOptionalFormals = const MessageCode( 2013 const MessageCode messageOperatorWithOptionalFormals = const MessageCode(
1972 "OperatorWithOptionalFormals", 2014 "OperatorWithOptionalFormals",
1973 message: r"""An operator can't have optional parameters."""); 2015 message: r"""An operator can't have optional parameters.""");
1974 2016
1975 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2017 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1976 const Template< 2018 const Template<
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
2818 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods."""); 2860 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods.""");
2819 2861
2820 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2862 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2821 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; 2863 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator;
2822 2864
2823 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 2865 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
2824 const MessageCode messageYieldNotGenerator = const MessageCode( 2866 const MessageCode messageYieldNotGenerator = const MessageCode(
2825 "YieldNotGenerator", 2867 "YieldNotGenerator",
2826 dart2jsCode: "*ignored*", 2868 dart2jsCode: "*ignored*",
2827 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); 2869 message: r"""'yield' can only be used in 'sync*' or 'async*' methods.""");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698