OLD | NEW |
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 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 const Code<Null> codeOnlyTry = messageOnlyTry; | 1966 const Code<Null> codeOnlyTry = messageOnlyTry; |
1967 | 1967 |
1968 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1968 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1969 const MessageCode messageOnlyTry = const MessageCode("OnlyTry", | 1969 const MessageCode messageOnlyTry = const MessageCode("OnlyTry", |
1970 dart2jsCode: "*ignored*", | 1970 dart2jsCode: "*ignored*", |
1971 message: | 1971 message: |
1972 r"""Try block should be followed by 'on', 'catch', or 'finally' block.""
", | 1972 r"""Try block should be followed by 'on', 'catch', or 'finally' block.""
", |
1973 tip: r"""Did you forget to add a 'finally' block?"""); | 1973 tip: r"""Did you forget to add a 'finally' block?"""); |
1974 | 1974 |
1975 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1975 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1976 const Template<Message Function(String name, int number)> | 1976 const Template< |
1977 templateOperatorParameterMismatch = | 1977 Message Function( |
1978 const Template<Message Function(String name, int number)>( | 1978 String |
1979 messageTemplate: | 1979 name)> templateOperatorMinusParameterMismatch = const Template< |
1980 r"""Operator '#name' must have exactly #number parameters.""", | 1980 Message Function(String name)>( |
1981 withArguments: _withArgumentsOperatorParameterMismatch); | 1981 messageTemplate: r"""Operator '#name' should have zero or one parameter.""", |
| 1982 tipTemplate: |
| 1983 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 kn
own as '-'.""", |
| 1984 withArguments: _withArgumentsOperatorMinusParameterMismatch); |
1982 | 1985 |
1983 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1986 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1984 const Code<Message Function(String name, int number)> | 1987 const Code<Message Function(String name)> codeOperatorMinusParameterMismatch = |
1985 codeOperatorParameterMismatch = | 1988 const Code<Message Function(String name)>( |
1986 const Code<Message Function(String name, int number)>( | 1989 "OperatorMinusParameterMismatch", |
1987 "OperatorParameterMismatch", | 1990 templateOperatorMinusParameterMismatch, |
1988 templateOperatorParameterMismatch, | |
1989 ); | 1991 ); |
1990 | 1992 |
1991 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 1993 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1992 Message _withArgumentsOperatorParameterMismatch(String name, int number) { | 1994 Message _withArgumentsOperatorMinusParameterMismatch(String name) { |
1993 return new Message(codeOperatorParameterMismatch, | 1995 return new Message(codeOperatorMinusParameterMismatch, |
1994 message: """Operator '$name' must have exactly $number parameters.""", | 1996 message: """Operator '$name' should have zero or one parameter.""", |
1995 arguments: {'name': name, 'number': number}); | 1997 tip: |
| 1998 """With zero parameters, it has the syntactic form '-a', formally know
n as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally k
nown as '-'.""", |
| 1999 arguments: {'name': name}); |
1996 } | 2000 } |
1997 | 2001 |
1998 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2002 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2003 const Template<Message Function(String name)> |
| 2004 templateOperatorParameterMismatch0 = |
| 2005 const Template<Message Function(String name)>( |
| 2006 messageTemplate: r"""Operator '#name' shouldn't have any parameters.""", |
| 2007 withArguments: _withArgumentsOperatorParameterMismatch0); |
| 2008 |
| 2009 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2010 const Code<Message Function(String name)> codeOperatorParameterMismatch0 = |
| 2011 const Code<Message Function(String name)>( |
| 2012 "OperatorParameterMismatch0", |
| 2013 templateOperatorParameterMismatch0, |
| 2014 ); |
| 2015 |
| 2016 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2017 Message _withArgumentsOperatorParameterMismatch0(String name) { |
| 2018 return new Message(codeOperatorParameterMismatch0, |
| 2019 message: """Operator '$name' shouldn't have any parameters.""", |
| 2020 arguments: {'name': name}); |
| 2021 } |
| 2022 |
| 2023 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2024 const Template<Message Function(String name)> |
| 2025 templateOperatorParameterMismatch1 = |
| 2026 const Template<Message Function(String name)>( |
| 2027 messageTemplate: |
| 2028 r"""Operator '#name' should have exactly one parameter.""", |
| 2029 withArguments: _withArgumentsOperatorParameterMismatch1); |
| 2030 |
| 2031 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2032 const Code<Message Function(String name)> codeOperatorParameterMismatch1 = |
| 2033 const Code<Message Function(String name)>( |
| 2034 "OperatorParameterMismatch1", |
| 2035 templateOperatorParameterMismatch1, |
| 2036 ); |
| 2037 |
| 2038 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2039 Message _withArgumentsOperatorParameterMismatch1(String name) { |
| 2040 return new Message(codeOperatorParameterMismatch1, |
| 2041 message: """Operator '$name' should have exactly one parameter.""", |
| 2042 arguments: {'name': name}); |
| 2043 } |
| 2044 |
| 2045 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2046 const Template<Message Function(String name)> |
| 2047 templateOperatorParameterMismatch2 = |
| 2048 const Template<Message Function(String name)>( |
| 2049 messageTemplate: |
| 2050 r"""Operator '#name' should have exactly two parameters.""", |
| 2051 withArguments: _withArgumentsOperatorParameterMismatch2); |
| 2052 |
| 2053 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2054 const Code<Message Function(String name)> codeOperatorParameterMismatch2 = |
| 2055 const Code<Message Function(String name)>( |
| 2056 "OperatorParameterMismatch2", |
| 2057 templateOperatorParameterMismatch2, |
| 2058 ); |
| 2059 |
| 2060 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 2061 Message _withArgumentsOperatorParameterMismatch2(String name) { |
| 2062 return new Message(codeOperatorParameterMismatch2, |
| 2063 message: """Operator '$name' should have exactly two parameters.""", |
| 2064 arguments: {'name': name}); |
| 2065 } |
| 2066 |
| 2067 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
1999 const Code<Null> codeOperatorWithOptionalFormals = | 2068 const Code<Null> codeOperatorWithOptionalFormals = |
2000 messageOperatorWithOptionalFormals; | 2069 messageOperatorWithOptionalFormals; |
2001 | 2070 |
2002 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2071 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2003 const MessageCode messageOperatorWithOptionalFormals = const MessageCode( | 2072 const MessageCode messageOperatorWithOptionalFormals = const MessageCode( |
2004 "OperatorWithOptionalFormals", | 2073 "OperatorWithOptionalFormals", |
2005 message: r"""An operator can't have optional parameters."""); | 2074 message: r"""An operator can't have optional parameters."""); |
2006 | 2075 |
2007 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2076 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2008 const Template< | 2077 const Template< |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2913 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); | 2982 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn
c*' methods."""); |
2914 | 2983 |
2915 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2984 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2916 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; | 2985 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
2917 | 2986 |
2918 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 2987 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
2919 const MessageCode messageYieldNotGenerator = const MessageCode( | 2988 const MessageCode messageYieldNotGenerator = const MessageCode( |
2920 "YieldNotGenerator", | 2989 "YieldNotGenerator", |
2921 dart2jsCode: "*ignored*", | 2990 dart2jsCode: "*ignored*", |
2922 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); | 2991 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |
OLD | NEW |