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

Side by Side Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 243263004: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/html.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.error; 8 library engine.error;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 @override 185 @override
186 ErrorType get type => ErrorType.POLYMER; 186 ErrorType get type => ErrorType.POLYMER;
187 } 187 }
188 188
189 /** 189 /**
190 * The enumeration `AngularCode` defines Angular specific problems. 190 * The enumeration `AngularCode` defines Angular specific problems.
191 */ 191 */
192 class AngularCode extends Enum<AngularCode> implements ErrorCode { 192 class AngularCode extends Enum<AngularCode> implements ErrorCode {
193 static const AngularCode CANNOT_PARSE_SELECTOR = const AngularCode('CANNOT_PAR SE_SELECTOR', 0, "The selector '%s' cannot be parsed"); 193 static const AngularCode CANNOT_PARSE_SELECTOR = const AngularCode('CANNOT_PAR SE_SELECTOR', 0, "The selector '%s' cannot be parsed");
194 194
195 static const AngularCode INVALID_PROPERTY_KIND = const AngularCode('INVALID_PR OPERTY_KIND', 1, "Unknown property binding kind '%s', use one of the '@', '=>', '=>!' or '<=>'"); 195 static const AngularCode INVALID_FILTER_NAME = const AngularCode('INVALID_FILT ER_NAME', 1, "Filter name must be a simple identifier");
196 196
197 static const AngularCode INVALID_PROPERTY_FIELD = const AngularCode('INVALID_P ROPERTY_FIELD', 2, "Unknown property field '%s'"); 197 static const AngularCode INVALID_PROPERTY_KIND = const AngularCode('INVALID_PR OPERTY_KIND', 2, "Unknown property binding kind '%s', use one of the '@', '=>', '=>!' or '<=>'");
198 198
199 static const AngularCode INVALID_PROPERTY_MAP = const AngularCode('INVALID_PRO PERTY_MAP', 3, "Argument 'map' must be a constant map literal"); 199 static const AngularCode INVALID_PROPERTY_FIELD = const AngularCode('INVALID_P ROPERTY_FIELD', 3, "Unknown property field '%s'");
200 200
201 static const AngularCode INVALID_PROPERTY_NAME = const AngularCode('INVALID_PR OPERTY_NAME', 4, "Property name must be a string literal"); 201 static const AngularCode INVALID_PROPERTY_MAP = const AngularCode('INVALID_PRO PERTY_MAP', 4, "Argument 'map' must be a constant map literal");
202 202
203 static const AngularCode INVALID_PROPERTY_SPEC = const AngularCode('INVALID_PR OPERTY_SPEC', 5, "Property binding specification must be a string literal"); 203 static const AngularCode INVALID_PROPERTY_NAME = const AngularCode('INVALID_PR OPERTY_NAME', 5, "Property name must be a string literal");
204 204
205 static const AngularCode INVALID_REPEAT_SYNTAX = const AngularCode('INVALID_RE PEAT_SYNTAX', 6, "Expected statement in form '_item_ in _collection_ [tracked by _id_]'"); 205 static const AngularCode INVALID_PROPERTY_SPEC = const AngularCode('INVALID_PR OPERTY_SPEC', 6, "Property binding specification must be a string literal");
206 206
207 static const AngularCode INVALID_REPEAT_ITEM_SYNTAX = const AngularCode('INVAL ID_REPEAT_ITEM_SYNTAX', 7, "Item must by identifier or in '(_key_, _value_)' pai r."); 207 static const AngularCode INVALID_REPEAT_SYNTAX = const AngularCode('INVALID_RE PEAT_SYNTAX', 7, "Expected statement in form '_item_ in _collection_ [tracked by _id_]'");
208 208
209 static const AngularCode INVALID_URI = const AngularCode('INVALID_URI', 8, "In valid URI syntax: '%s'"); 209 static const AngularCode INVALID_REPEAT_ITEM_SYNTAX = const AngularCode('INVAL ID_REPEAT_ITEM_SYNTAX', 8, "Item must by identifier or in '(_key_, _value_)' pai r.");
210 210
211 static const AngularCode MISSING_FILTER_COLON = const AngularCode('MISSING_FIL TER_COLON', 9, "Missing ':' before filter argument"); 211 static const AngularCode INVALID_URI = const AngularCode('INVALID_URI', 9, "In valid URI syntax: '%s'");
212 212
213 static const AngularCode MISSING_NAME = const AngularCode('MISSING_NAME', 10, "Argument 'name' must be provided"); 213 static const AngularCode MISSING_FILTER_COLON = const AngularCode('MISSING_FIL TER_COLON', 10, "Missing ':' before filter argument");
214 214
215 static const AngularCode MISSING_PUBLISH_AS = const AngularCode('MISSING_PUBLI SH_AS', 11, "Argument 'publishAs' must be provided"); 215 static const AngularCode MISSING_NAME = const AngularCode('MISSING_NAME', 11, "Argument 'name' must be provided");
216 216
217 static const AngularCode MISSING_SELECTOR = const AngularCode('MISSING_SELECTO R', 12, "Argument 'selector' must be provided"); 217 static const AngularCode MISSING_PUBLISH_AS = const AngularCode('MISSING_PUBLI SH_AS', 12, "Argument 'publishAs' must be provided");
218 218
219 static const AngularCode URI_DOES_NOT_EXIST = const AngularCode('URI_DOES_NOT_ EXIST', 13, "Target of URI does not exist: '%s'"); 219 static const AngularCode MISSING_SELECTOR = const AngularCode('MISSING_SELECTO R', 13, "Argument 'selector' must be provided");
220
221 static const AngularCode URI_DOES_NOT_EXIST = const AngularCode('URI_DOES_NOT_ EXIST', 14, "Target of URI does not exist: '%s'");
220 222
221 static const List<AngularCode> values = const [ 223 static const List<AngularCode> values = const [
222 CANNOT_PARSE_SELECTOR, 224 CANNOT_PARSE_SELECTOR,
225 INVALID_FILTER_NAME,
223 INVALID_PROPERTY_KIND, 226 INVALID_PROPERTY_KIND,
224 INVALID_PROPERTY_FIELD, 227 INVALID_PROPERTY_FIELD,
225 INVALID_PROPERTY_MAP, 228 INVALID_PROPERTY_MAP,
226 INVALID_PROPERTY_NAME, 229 INVALID_PROPERTY_NAME,
227 INVALID_PROPERTY_SPEC, 230 INVALID_PROPERTY_SPEC,
228 INVALID_REPEAT_SYNTAX, 231 INVALID_REPEAT_SYNTAX,
229 INVALID_REPEAT_ITEM_SYNTAX, 232 INVALID_REPEAT_ITEM_SYNTAX,
230 INVALID_URI, 233 INVALID_URI,
231 MISSING_FILTER_COLON, 234 MISSING_FILTER_COLON,
232 MISSING_NAME, 235 MISSING_NAME,
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 */ 1530 */
1528 static const CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = const CompileTimeErr orCode.con1('IMPORT_OF_NON_LIBRARY', 64, "The imported library '%s' must not hav e a part-of directive"); 1531 static const CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = const CompileTimeErr orCode.con1('IMPORT_OF_NON_LIBRARY', 64, "The imported library '%s' must not hav e a part-of directive");
1529 1532
1530 /** 1533 /**
1531 * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<s ub>k</sub></i> are 1534 * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<s ub>k</sub></i> are
1532 * not instances of the same class <i>C</i>, for all <i>1 &lt;= k &lt;= n</i>. 1535 * not instances of the same class <i>C</i>, for all <i>1 &lt;= k &lt;= n</i>.
1533 * 1536 *
1534 * @param expressionSource the expression source code that is the unexpected t ype 1537 * @param expressionSource the expression source code that is the unexpected t ype
1535 * @param expectedType the name of the expected type 1538 * @param expectedType the name of the expected type
1536 */ 1539 */
1537 static const CompileTimeErrorCode INCONSISTENT_CASE_EXPRESSION_TYPES = const C ompileTimeErrorCode.con1('INCONSISTENT_CASE_EXPRESSION_TYPES', 65, "Case express ions must have the same types, '%s' is not a %s'"); 1540 static const CompileTimeErrorCode INCONSISTENT_CASE_EXPRESSION_TYPES = const C ompileTimeErrorCode.con1('INCONSISTENT_CASE_EXPRESSION_TYPES', 65, "Case express ions must have the same types, '%s' is not a '%s'");
1538 1541
1539 /** 1542 /**
1540 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time 1543 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
1541 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an 1544 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an
1542 * instance variable declared in the immediately surrounding class. 1545 * instance variable declared in the immediately surrounding class.
1543 * 1546 *
1544 * @param id the name of the initializing formal that is not an instance varia ble in the 1547 * @param id the name of the initializing formal that is not an instance varia ble in the
1545 * immediately enclosing class 1548 * immediately enclosing class
1546 * @see #INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD 1549 * @see #INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD
1547 */ 1550 */
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 2100
2098 /** 2101 /**
2099 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears 2102 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears
2100 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is 2103 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is
2101 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i> 2104 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i>
2102 * (respectively <i>S.id</i>) 2105 * (respectively <i>S.id</i>)
2103 */ 2106 */
2104 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT ', 134, "The class '%s' does not have a default generative constructor"); 2107 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT ', 134, "The class '%s' does not have a default generative constructor");
2105 2108
2106 /** 2109 /**
2107 * 12.14.3 Unqualified Invocation: If there exists a lexically visible declara tion named
2108 * <i>id</i>, let <i>f<sub>id</sub></i> be the innermost such declaration. The n: [skip].
2109 * Otherwise, <i>i</i> is equivalent to <b>this</b>.<i>id</i>(<i>a<sub>1</sub> </i>; ...
2110 * <i>x<sub>n+k</sub></i> : <i>a<sub>n+k</sub></i>).
2111 *
2112 * @param methodName the name of the method that is undefined
2113 */
2114 static const CompileTimeErrorCode UNDEFINED_FUNCTION = const CompileTimeErrorC ode.con1('UNDEFINED_FUNCTION', 135, "The function '%s' is not defined");
2115
2116 /**
2117 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>, 2110 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
2118 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ... 2111 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ...
2119 * <i>p<sub>n+k</sub></i>} or a static warning occurs. 2112 * <i>p<sub>n+k</sub></i>} or a static warning occurs.
2120 * 2113 *
2121 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 2114 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
2122 * uncaught exception being thrown. 2115 * uncaught exception being thrown.
2123 * 2116 *
2124 * @param name the name of the requested named parameter 2117 * @param name the name of the requested named parameter
2125 */ 2118 */
2126 static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTim eErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 136, "The named parameter '%s' is n ot defined"); 2119 static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTim eErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 135, "The named parameter '%s' is n ot defined");
2127 2120
2128 /** 2121 /**
2129 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is 2122 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is
2130 * not a library declaration. 2123 * not a library declaration.
2131 * 2124 *
2132 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is 2125 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is
2133 * not a library declaration. 2126 * not a library declaration.
2134 * 2127 *
2135 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part 2128 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part
2136 * declaration. 2129 * declaration.
2137 * 2130 *
2138 * @param uri the URI pointing to a non-existent file 2131 * @param uri the URI pointing to a non-existent file
2139 * @see #INVALID_URI 2132 * @see #INVALID_URI
2140 */ 2133 */
2141 static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorC ode.con1('URI_DOES_NOT_EXIST', 137, "Target of URI does not exist: '%s'"); 2134 static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorC ode.con1('URI_DOES_NOT_EXIST', 136, "Target of URI does not exist: '%s'");
2142 2135
2143 /** 2136 /**
2144 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if 2137 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if
2145 * <i>x</i> involves string interpolation. 2138 * <i>x</i> involves string interpolation.
2146 * 2139 *
2147 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co nstant, or if 2140 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co nstant, or if
2148 * <i>s</i> involves string interpolation. 2141 * <i>s</i> involves string interpolation.
2149 * 2142 *
2150 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d escribes a URI is 2143 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d escribes a URI is
2151 * not a compile-time constant, or if <i>x</i> involves string interpolation. 2144 * not a compile-time constant, or if <i>x</i> involves string interpolation.
2152 */ 2145 */
2153 static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeEr rorCode.con1('URI_WITH_INTERPOLATION', 138, "URIs cannot use string interpolatio n"); 2146 static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeEr rorCode.con1('URI_WITH_INTERPOLATION', 137, "URIs cannot use string interpolatio n");
2154 2147
2155 /** 2148 /**
2156 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar ed operator []= is 2149 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar ed operator []= is
2157 * not 2. It is a compile time error if the arity of a user-declared operator with one of the 2150 * not 2. It is a compile time error if the arity of a user-declared operator with one of the
2158 * names: &lt;, &gt;, &lt;=, &gt;=, ==, +, /, ~/, *, %, |, ^, &, &lt;&lt;, &gt ;&gt;, [] is not 1. 2151 * names: &lt;, &gt;, &lt;=, &gt;=, ==, +, /, ~/, *, %, |, ^, &, &lt;&lt;, &gt ;&gt;, [] is not 1.
2159 * It is a compile time error if the arity of the user-declared operator - is not 0 or 1. It is a 2152 * It is a compile time error if the arity of the user-declared operator - is not 0 or 1. It is a
2160 * compile time error if the arity of the user-declared operator ~ is not 0. 2153 * compile time error if the arity of the user-declared operator ~ is not 0.
2161 * 2154 *
2162 * @param operatorName the name of the declared operator 2155 * @param operatorName the name of the declared operator
2163 * @param expectedNumberOfParameters the number of parameters expected 2156 * @param expectedNumberOfParameters the number of parameters expected
2164 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration 2157 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration
2165 */ 2158 */
2166 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = co nst CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 139, "O perator '%s' should declare exactly %d parameter(s), but %d found"); 2159 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = co nst CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 138, "O perator '%s' should declare exactly %d parameter(s), but %d found");
2167 2160
2168 /** 2161 /**
2169 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar ed operator - is not 2162 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar ed operator - is not
2170 * 0 or 1. 2163 * 0 or 1.
2171 * 2164 *
2172 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration 2165 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration
2173 */ 2166 */
2174 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU S = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MIN US', 140, "Operator '-' should declare 0 or 1 parameter, but %d found"); 2167 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU S = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MIN US', 139, "Operator '-' should declare 0 or 1 parameter, but %d found");
2175 2168
2176 /** 2169 /**
2177 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include 2170 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include
2178 * exactly one required formal parameter <i>p</i>. 2171 * exactly one required formal parameter <i>p</i>.
2179 */ 2172 */
2180 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = cons t CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 141, "Sette rs should declare exactly one required parameter"); 2173 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = cons t CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 140, "Sette rs should declare exactly one required parameter");
2181 2174
2182 static const List<CompileTimeErrorCode> values = const [ 2175 static const List<CompileTimeErrorCode> values = const [
2183 AMBIGUOUS_EXPORT, 2176 AMBIGUOUS_EXPORT,
2184 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, 2177 ARGUMENT_DEFINITION_TEST_NON_PARAMETER,
2185 BUILT_IN_IDENTIFIER_AS_TYPE, 2178 BUILT_IN_IDENTIFIER_AS_TYPE,
2186 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, 2179 BUILT_IN_IDENTIFIER_AS_TYPE_NAME,
2187 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, 2180 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME,
2188 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, 2181 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME,
2189 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, 2182 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS,
2190 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, 2183 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2308 RETURN_IN_GENERATIVE_CONSTRUCTOR, 2301 RETURN_IN_GENERATIVE_CONSTRUCTOR,
2309 SHARED_DEFERRED_PREFIX, 2302 SHARED_DEFERRED_PREFIX,
2310 SUPER_IN_INVALID_CONTEXT, 2303 SUPER_IN_INVALID_CONTEXT,
2311 SUPER_IN_REDIRECTING_CONSTRUCTOR, 2304 SUPER_IN_REDIRECTING_CONSTRUCTOR,
2312 SUPER_INITIALIZER_IN_OBJECT, 2305 SUPER_INITIALIZER_IN_OBJECT,
2313 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, 2306 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS,
2314 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF, 2307 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF,
2315 UNDEFINED_CLASS, 2308 UNDEFINED_CLASS,
2316 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER, 2309 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER,
2317 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT, 2310 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT,
2318 UNDEFINED_FUNCTION,
2319 UNDEFINED_NAMED_PARAMETER, 2311 UNDEFINED_NAMED_PARAMETER,
2320 URI_DOES_NOT_EXIST, 2312 URI_DOES_NOT_EXIST,
2321 URI_WITH_INTERPOLATION, 2313 URI_WITH_INTERPOLATION,
2322 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR, 2314 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR,
2323 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS, 2315 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS,
2324 WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER]; 2316 WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER];
2325 2317
2326 /** 2318 /**
2327 * The template used to create the message to be displayed for this error. 2319 * The template used to create the message to be displayed for this error.
2328 */ 2320 */
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
2663 /** 2655 /**
2664 * 14.1 Imports: It is a static warning to import two different libraries with the same name. 2656 * 14.1 Imports: It is a static warning to import two different libraries with the same name.
2665 * 2657 *
2666 * @param uri1 the uri pointing to a first library 2658 * @param uri1 the uri pointing to a first library
2667 * @param uri2 the uri pointing to a second library 2659 * @param uri2 the uri pointing to a second library
2668 * @param name the shared name of the imported libraries 2660 * @param name the shared name of the imported libraries
2669 */ 2661 */
2670 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = const StaticWa rningCode.con1('IMPORT_DUPLICATED_LIBRARY_NAME', 25, "The imported libraries '%s ' and '%s' should not have the same name '%s'"); 2662 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = const StaticWa rningCode.con1('IMPORT_DUPLICATED_LIBRARY_NAME', 25, "The imported libraries '%s ' and '%s' should not have the same name '%s'");
2671 2663
2672 /** 2664 /**
2673 * 8.1.1 Inheritance and Overriding: However, if there are multiple members <i >m<sub>1</sub>, 2665 * 8.1.1 Inheritance and Overriding: However, if the above rules would cause m ultiple members
2674 * &hellip; m<sub>k</sub></i> with the same name <i>n</i> that would be inheri ted (because 2666 * <i>m<sub>1</sub>, &hellip;, m<sub>k</sub></i> with the same name <i>n</i> t hat would be
2675 * identically named members existed in several superinterfaces) then at most one member is 2667 * inherited (because identically named members existed in several superinterf aces) then at most
2676 * inherited. 2668 * one member is inherited.
2677 * 2669 *
2678 * If some but not all of the <i>m<sub>i</sub>, 1 &lt;= i &lt;= k</i>, are get ters, or if some but 2670 * If some but not all of the <i>m<sub>i</sub>, 1 &lt;= i &lt;= k</i> are gett ers none of the
2679 * not all of the <i>m<sub>i</sub></i> are setters, none of the <i>m<sub>i</su b></i> are 2671 * <i>m<sub>i</sub></i> are inherited, and a static warning is issued.
2680 * inherited, and a static warning is issued.
2681 */ 2672 */
2682 static const StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH OD = const StaticWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_ME THOD', 26, "'%s' is inherited as a getter and also a method"); 2673 static const StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH OD = const StaticWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_ME THOD', 26, "'%s' is inherited as a getter and also a method");
2683 2674
2684 /** 2675 /**
2685 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a n instance method 2676 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a n instance method
2686 * named <i>n</i> and an accessible static member named <i>n</i> is declared i n a superclass of 2677 * named <i>n</i> and an accessible static member named <i>n</i> is declared i n a superclass of
2687 * <i>C</i>. 2678 * <i>C</i>.
2688 * 2679 *
2689 * @param memberName the name of the member with the name conflict 2680 * @param memberName the name of the member with the name conflict
2690 * @param superclassName the name of the enclosing class that has the static m ember 2681 * @param superclassName the name of the enclosing class that has the static m ember
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
2800 * 2791 *
2801 * @param actualParamTypeName the name of the expected parameter type 2792 * @param actualParamTypeName the name of the expected parameter type
2802 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 2793 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
2803 * actualParamTypeName 2794 * actualParamTypeName
2804 * @param className the name of the class where the overridden setter is decla red 2795 * @param className the name of the class where the overridden setter is decla red
2805 * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE 2796 * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE
2806 */ 2797 */
2807 static const StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = con st StaticWarningCode.con1('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 38, "The parameter type '%s' is not assignable to '%s' as required by the setter it is ov erriding from '%s'"); 2798 static const StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = con st StaticWarningCode.con1('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 38, "The parameter type '%s' is not assignable to '%s' as required by the setter it is ov erriding from '%s'");
2808 2799
2809 /** 2800 /**
2810 * 12.6 Lists: A run-time list literal &lt;<i>E</i>&gt; [<i>e<sub>1</sub></i> ... 2801 * 12.6 Lists: A run-time list literal &lt;<i>E</i>&gt; [<i>e<sub>1</sub></i> &hellip;
2811 * <i>e<sub>n</sub></i>] is evaluated as follows: 2802 * <i>e<sub>n</sub></i>] is evaluated as follows:
2812 * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument 2803 * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument
2813 * <i>o<sub>i+1</sub></i><i>, 1 &lt;= i &lt;= n</i> 2804 * <i>o<sub>i+1</sub></i><i>, 1 &lt;= i &lt;= n</i>
2814 * 2805 *
2815 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 2806 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
2816 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;= 2807 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;=
2817 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>. 2808 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>.
2818 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 2809 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
2819 * j &lt;= m</i>. 2810 * j &lt;= m</i>.
2820 */ 2811 */
2821 static const StaticWarningCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const Static WarningCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 39, "The element type '%s' cannot be assigned to the list type '%s'"); 2812 static const StaticWarningCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const Static WarningCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 39, "The element type '%s' cannot be assigned to the list type '%s'");
2822 2813
2823 /** 2814 /**
2824 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> : 2815 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> :
2825 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows: 2816 * <i>e<sub>1</sub></i> &hellip; <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is evaluated as
2817 * follows:
2826 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second 2818 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second
2827 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i> 2819 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i>
2828 * 2820 *
2829 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 2821 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
2830 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;= 2822 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;=
2831 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>. 2823 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>.
2832 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 2824 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
2833 * j &lt;= m</i>. 2825 * j &lt;= m</i>.
2834 */ 2826 */
2835 static const StaticWarningCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const StaticWarni ngCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 40, "The element type '%s' cannot be assigned to the map key type '%s'"); 2827 static const StaticWarningCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const StaticWarni ngCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 40, "The element type '%s' cannot be assigned to the map key type '%s'");
2836 2828
2837 /** 2829 /**
2838 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> : 2830 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> :
2839 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows: 2831 * <i>e<sub>1</sub></i> &hellip; <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is evaluated as
2832 * follows:
2840 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second 2833 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second
2841 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i> 2834 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i>
2842 * 2835 *
2843 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 2836 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
2844 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;= 2837 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;=
2845 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>. 2838 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>.
2846 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 2839 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
2847 * j &lt;= m</i>. 2840 * j &lt;= m</i>.
2848 */ 2841 */
2849 static const StaticWarningCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const StaticWar ningCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 41, "The element type '%s' cannot be assigned to the map value type '%s'"); 2842 static const StaticWarningCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const StaticWar ningCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 41, "The element type '%s' cannot be assigned to the map value type '%s'");
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2892 * @param name the name of the non-type element 2885 * @param name the name of the non-type element
2893 */ 2886 */
2894 static const StaticWarningCode NEW_WITH_NON_TYPE = const StaticWarningCode.con 1('NEW_WITH_NON_TYPE', 47, "The name '%s' is not a class"); 2887 static const StaticWarningCode NEW_WITH_NON_TYPE = const StaticWarningCode.con 1('NEW_WITH_NON_TYPE', 47, "The name '%s' is not a class");
2895 2888
2896 /** 2889 /**
2897 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then: 2890 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then:
2898 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>, 2891 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>,
2899 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a 2892 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a
2900 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>. 2893 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>.
2901 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>: 2894 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>:
2902 * a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta tic warning if the 2895 * a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a st atic warning if the
2903 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>. 2896 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>.
2904 */ 2897 */
2905 static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = const StaticWa rningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR', 48, "The class '%s' does not ha ve a constructor '%s'"); 2898 static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = const StaticWa rningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR', 48, "The class '%s' does not ha ve a constructor '%s'");
2906 2899
2907 /** 2900 /**
2908 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then: 2901 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then:
2909 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>, 2902 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>,
2910 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a 2903 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a
2911 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>. 2904 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>.
2912 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>: 2905 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>:
2913 * a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta tic warning if the 2906 * a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a st atic warning if the
2914 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>. 2907 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>.
2915 */ 2908 */
2916 static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = const StaticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 49, "The class '%s' does not have a default constructor"); 2909 static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = const StaticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 49, "The class '%s' does not have a default constructor");
2917 2910
2918 /** 2911 /**
2919 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2912 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
2920 * abstract method. 2913 * abstract method.
2921 * 2914 *
2922 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own 2915 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own
2923 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i> 2916 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i>
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
3158 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form 3151 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form
3159 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or 3152 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or
3160 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the 3153 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the
3161 * lexical scope enclosing the expression. 3154 * lexical scope enclosing the expression.
3162 * 3155 *
3163 * @param name the name of the identifier 3156 * @param name the name of the identifier
3164 */ 3157 */
3165 static const StaticWarningCode UNDEFINED_IDENTIFIER = const StaticWarningCode. con1('UNDEFINED_IDENTIFIER', 73, "Undefined name '%s'"); 3158 static const StaticWarningCode UNDEFINED_IDENTIFIER = const StaticWarningCode. con1('UNDEFINED_IDENTIFIER', 73, "Undefined name '%s'");
3166 3159
3167 /** 3160 /**
3168 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>, 3161 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
3169 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ... 3162 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > &hellip;
3170 * <i>p<sub>n+k</sub></i>} or a static warning occurs. 3163 * <i>p<sub>n+k</sub></i>} or a static warning occurs.
3171 * 3164 *
3172 * @param name the name of the requested named parameter 3165 * @param name the name of the requested named parameter
3173 */ 3166 */
3174 static const StaticWarningCode UNDEFINED_NAMED_PARAMETER = const StaticWarning Code.con1('UNDEFINED_NAMED_PARAMETER', 74, "The named parameter '%s' is not defi ned"); 3167 static const StaticWarningCode UNDEFINED_NAMED_PARAMETER = const StaticWarning Code.con1('UNDEFINED_NAMED_PARAMETER', 74, "The named parameter '%s' is not defi ned");
3175 3168
3176 /** 3169 /**
3177 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs 3170 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs
3178 * inside a top level or static function (be it function, method, getter, or s etter) or variable 3171 * inside a top level or static function (be it function, method, getter, or s etter) or variable
3179 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope 3172 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
3422 3415
3423 /** 3416 /**
3424 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. It is a static type 3417 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. It is a static type
3425 * warning if <i>T</i> does not have an accessible instance setter named <i>v= </i>. 3418 * warning if <i>T</i> does not have an accessible instance setter named <i>v= </i>.
3426 * 3419 *
3427 * @see #UNDEFINED_SETTER 3420 * @see #UNDEFINED_SETTER
3428 */ 3421 */
3429 static const StaticTypeWarningCode INACCESSIBLE_SETTER = const StaticTypeWarni ngCode.con1('INACCESSIBLE_SETTER', 2, ""); 3422 static const StaticTypeWarningCode INACCESSIBLE_SETTER = const StaticTypeWarni ngCode.con1('INACCESSIBLE_SETTER', 2, "");
3430 3423
3431 /** 3424 /**
3432 * 8.1.1 Inheritance and Overriding: However, if there are multiple members <i >m<sub>1</sub>, 3425 * 8.1.1 Inheritance and Overriding: However, if the above rules would cause m ultiple members
3433 * &hellip; m<sub>k</sub></i> with the same name <i>n</i> that would be inheri ted (because 3426 * <i>m<sub>1</sub>, &hellip;, m<sub>k</sub></i> with the same name <i>n</i> t hat would be
3434 * identically named members existed in several superinterfaces) then at most one member is 3427 * inherited (because identically named members existed in several superinterf aces) then at most
3435 * inherited. 3428 * one member is inherited.
3436 * 3429 *
3437 * If the static types <i>T<sub>1</sub>, &hellip;, T<sub>k</sub></i> of the me mbers 3430 * If the static types <i>T<sub>1</sub>, &hellip;, T<sub>k</sub></i> of the me mbers
3438 * <i>m<sub>1</sub>, &hellip;, m<sub>k</sub></i> are not identical, then there must be a member 3431 * <i>m<sub>1</sub>, &hellip;, m<sub>k</sub></i> are not identical, then there must be a member
3439 * <i>m<sub>x</sub></i> such that <i>T<sub>x</sub> &lt; T<sub>i</sub>, 1 &lt;= x &lt;= k</i> for 3432 * <i>m<sub>x</sub></i> such that <i>T<sub>x</sub> &lt;: T<sub>i</sub>, 1 &lt; = x &lt;= k</i> for
3440 * all <i>i, 1 &lt;= i &lt; k</i>, or a static type warning occurs. The member that is inherited 3433 * all <i>i, 1 &lt;= i &lt;= k</i>, or a static type warning occurs. The membe r that is inherited
3441 * is <i>m<sub>x</sub></i>, if it exists; otherwise: 3434 * is <i>m<sub>x</sub></i>, if it exists; otherwise:
3442 * <ol> 3435 * * Let <i>numberOfPositionals</i>(<i>f</i>) denote the number of positional parameters of a
3443 * * If all of <i>m<sub>1</sub>, &hellip; m<sub>k</sub></i> have the same numb er <i>r</i> of 3436 * function <i>f</i>, and let <i>numberOfRequiredParams</i>(<i>f</i>) denote t he number of
3444 * required parameters and the same set of named parameters <i>s</i>, then let <i>h = max( 3437 * required parameters of a function <i>f</i>. Furthermore, let <i>s</i> denot e the set of all
3445 * numberOfOptionalPositionals( m<sub>i</sub> ) ), 1 &lt;= i &lt;= k</i>. <i>I </i> has a method 3438 * named parameters of the <i>m<sub>1</sub>, &hellip;, m<sub>k</sub></i>. Then let
3446 * named <i>n</i>, with <i>r</i> required parameters of type dynamic, <i>h</i> optional positional 3439 * * <i>h = max(numberOfPositionals(m<sub>i</sub>)),</i>
3447 * parameters of type dynamic, named parameters <i>s</i> of type dynamic and r eturn type dynamic. 3440 * * <i>r = min(numberOfRequiredParams(m<sub>i</sub>)), for all <i>i</i>, 1 <= i <= k.</i>
3441 * If <i>r <= h</i> then <i>I</i> has a method named <i>n</i>, with <i>r</i> r equired parameters
3442 * of type <b>dynamic</b>, <i>h</i> positional parameters of type <b>dynamic</ b>, named parameters
3443 * <i>s</i> of type <b>dynamic</b> and return type <b>dynamic</b>.
3448 * * Otherwise none of the members <i>m<sub>1</sub>, &hellip;, m<sub>k</sub></ i> is inherited. 3444 * * Otherwise none of the members <i>m<sub>1</sub>, &hellip;, m<sub>k</sub></ i> is inherited.
3449 * </ol>
3450 */ 3445 */
3451 static const StaticTypeWarningCode INCONSISTENT_METHOD_INHERITANCE = const Sta ticTypeWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE', 3, "'%s' is inherited by at least two interfaces inconsistently, from %s"); 3446 static const StaticTypeWarningCode INCONSISTENT_METHOD_INHERITANCE = const Sta ticTypeWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE', 3, "'%s' is inherited by at least two interfaces inconsistently, from %s");
3452 3447
3453 /** 3448 /**
3454 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does n ot have an 3449 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does n ot have an
3455 * accessible (3.2) instance member named <i>m</i>. 3450 * accessible (3.2) instance member named <i>m</i>.
3456 * 3451 *
3457 * @param memberName the name of the static member 3452 * @param memberName the name of the static member
3458 * @see UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER 3453 * @see UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER
3459 */ 3454 */
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
3493 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip; 3488 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip;
3494 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. If <i>S.m</i> exists, it is a static warning if the type 3489 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. If <i>S.m</i> exists, it is a static warning if the type
3495 * <i>F</i> of <i>S.m</i> may not be assigned to a function type. 3490 * <i>F</i> of <i>S.m</i> may not be assigned to a function type.
3496 * 3491 *
3497 * @param nonFunctionIdentifier the name of the identifier that is not a funct ion type 3492 * @param nonFunctionIdentifier the name of the identifier that is not a funct ion type
3498 */ 3493 */
3499 static const StaticTypeWarningCode INVOCATION_OF_NON_FUNCTION = const StaticTy peWarningCode.con1('INVOCATION_OF_NON_FUNCTION', 6, "'%s' is not a method"); 3494 static const StaticTypeWarningCode INVOCATION_OF_NON_FUNCTION = const StaticTy peWarningCode.con1('INVOCATION_OF_NON_FUNCTION', 6, "'%s' is not a method");
3500 3495
3501 /** 3496 /**
3502 * 12.14.4 Function Expression Invocation: A function expression invocation <i >i</i> has the form 3497 * 12.14.4 Function Expression Invocation: A function expression invocation <i >i</i> has the form
3503 * <i>e<sub>f</sub>(a<sub>1</sub>, &hellip; a<sub>n</sub>, x<sub>n+1</sub>: a< sub>n+1</sub>, 3498 * <i>e<sub>f</sub>(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a <sub>n+1</sub>,
3504 * &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub>)</i>, where <i>e<sub>f</sub></i> is an expression. 3499 * &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub>)</i>, where <i>e<sub>f</sub></i> is an expression.
3505 * 3500 *
3506 * It is a static type warning if the static type <i>F</i> of <i>e<sub>f</sub> </i> may not be 3501 * It is a static type warning if the static type <i>F</i> of <i>e<sub>f</sub> </i> may not be
3507 * assigned to a function type. 3502 * assigned to a function type.
3508 */ 3503 */
3509 static const StaticTypeWarningCode INVOCATION_OF_NON_FUNCTION_EXPRESSION = con st StaticTypeWarningCode.con1('INVOCATION_OF_NON_FUNCTION_EXPRESSION', 7, "Canno t invoke a non-function"); 3504 static const StaticTypeWarningCode INVOCATION_OF_NON_FUNCTION_EXPRESSION = con st StaticTypeWarningCode.con1('INVOCATION_OF_NON_FUNCTION_EXPRESSION', 7, "Canno t invoke a non-function");
3510 3505
3511 /** 3506 /**
3512 * 12.20 Conditional: It is a static type warning if the type of <i>e<sub>1</s ub></i> may not be 3507 * 12.20 Conditional: It is a static type warning if the type of <i>e<sub>1</s ub></i> may not be
3513 * assigned to bool. 3508 * assigned to bool.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 */ 3547 */
3553 static const StaticTypeWarningCode RETURN_OF_INVALID_TYPE = const StaticTypeWa rningCode.con1('RETURN_OF_INVALID_TYPE', 12, "The return type '%s' is not a '%s' , as defined by the method '%s'"); 3548 static const StaticTypeWarningCode RETURN_OF_INVALID_TYPE = const StaticTypeWa rningCode.con1('RETURN_OF_INVALID_TYPE', 12, "The return type '%s' is not a '%s' , as defined by the method '%s'");
3554 3549
3555 /** 3550 /**
3556 * 12.11 Instance Creation: It is a static type warning if any of the type arg uments to a 3551 * 12.11 Instance Creation: It is a static type warning if any of the type arg uments to a
3557 * constructor of a generic type <i>G</i> invoked by a new expression or a con stant object 3552 * constructor of a generic type <i>G</i> invoked by a new expression or a con stant object
3558 * expression are not subtypes of the bounds of the corresponding formal type parameters of 3553 * expression are not subtypes of the bounds of the corresponding formal type parameters of
3559 * <i>G</i>. 3554 * <i>G</i>.
3560 * 3555 *
3561 * 15.8 Parameterized Types: If <i>S</i> is the static type of a member <i>m</ i> of <i>G</i>, then 3556 * 15.8 Parameterized Types: If <i>S</i> is the static type of a member <i>m</ i> of <i>G</i>, then
3562 * the static type of the member <i>m</i> of <i>G&lt;A<sub>1</sub>, &hellip; A <sub>n</sub>&gt;</i> 3557 * the static type of the member <i>m</i> of <i>G&lt;A<sub>1</sub>, &hellip;,
3563 * is <i>[A<sub>1</sub>, &hellip;, A<sub>n</sub>/T<sub>1</sub>, &hellip;, T<su b>n</sub>]S</i> 3558 * A<sub>n</sub>&gt;</i> is <i>[A<sub>1</sub>, &hellip;, A<sub>n</sub>/T<sub>1 </sub>, &hellip;,
3564 * where <i>T<sub>1</sub>, &hellip; T<sub>n</sub></i> are the formal type para meters of <i>G</i>. 3559 * T<sub>n</sub>]S</i> where <i>T<sub>1</sub>, &hellip;, T<sub>n</sub></i> are the formal type
3565 * Let <i>B<sub>i</sub></i> be the bounds of <i>T<sub>i</sub>, 1 &lt;= i &lt;= n</i>. It is a 3560 * parameters of <i>G</i>. Let <i>B<sub>i</sub></i> be the bounds of <i>T<sub> i</sub>, 1 &lt;= i
3566 * static type warning if <i>A<sub>i</sub></i> is not a subtype of <i>[A<sub>1 </sub>, &hellip;, 3561 * &lt;= n</i>. It is a static type warning if <i>A<sub>i</sub></i> is not a s ubtype of
3567 * A<sub>n</sub>/T<sub>1</sub>, &hellip;, T<sub>n</sub>]B<sub>i</sub>, 1 &lt;= i &lt;= n</i>. 3562 * <i>[A<sub>1</sub>, &hellip;, A<sub>n</sub>/T<sub>1</sub>, &hellip;,
3563 * T<sub>n</sub>]B<sub>i</sub>, 1 &lt;= i &lt;= n</i>.
3568 * 3564 *
3569 * 7.6.2 Factories: It is a static type warning if any of the type arguments t o <i>k'</i> are not 3565 * 7.6.2 Factories: It is a static type warning if any of the type arguments t o <i>k'</i> are not
3570 * subtypes of the bounds of the corresponding formal type parameters of type. 3566 * subtypes of the bounds of the corresponding formal type parameters of type.
3571 * 3567 *
3572 * @param boundedTypeName the name of the type used in the instance creation t hat should be 3568 * @param boundedTypeName the name of the type used in the instance creation t hat should be
3573 * limited by the bound as specified in the class declaration 3569 * limited by the bound as specified in the class declaration
3574 * @param boundingTypeName the name of the bounding type 3570 * @param boundingTypeName the name of the bounding type
3575 * @see #TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND 3571 * @see #TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND
3576 */ 3572 */
3577 static const StaticTypeWarningCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const S taticTypeWarningCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 13, "'%s' does no t extend '%s'"); 3573 static const StaticTypeWarningCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const S taticTypeWarningCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 13, "'%s' does no t extend '%s'");
3578 3574
3579 /** 3575 /**
3580 * 10 Generics: It is a static type warning if a type parameter is a supertype of its upper bound. 3576 * 10 Generics: It is a static type warning if a type parameter is a supertype of its upper bound.
3581 * 3577 *
3582 * @param typeParameterName the name of the type parameter 3578 * @param typeParameterName the name of the type parameter
3583 * @see #TYPE_ARGUMENT_NOT_MATCHING_BOUNDS 3579 * @see #TYPE_ARGUMENT_NOT_MATCHING_BOUNDS
3584 */ 3580 */
3585 static const StaticTypeWarningCode TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND = con st StaticTypeWarningCode.con1('TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND', 14, "'%s' cannot be a supertype of its upper bound"); 3581 static const StaticTypeWarningCode TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND = con st StaticTypeWarningCode.con1('TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND', 14, "'%s' cannot be a supertype of its upper bound");
3586 3582
3587 /** 3583 /**
3584 * 12.15.3 Unqualified Invocation: If there exists a lexically visible declara tion named
3585 * <i>id</i>, let <i>f<sub>id</sub></i> be the innermost such declaration. The n: [skip].
3586 * Otherwise, <i>f<sub>id</sub></i> is considered equivalent to the ordinary m ethod invocation
3587 * <b>this</b>.<i>id</i>(<i>a<sub>1</sub></i>, ..., <i>a<sub>n</sub></i>, <i>x <sub>n+1</sub></i> :
3588 * <i>a<sub>n+1</sub></i>, ..., <i>x<sub>n+k</sub></i> : <i>a<sub>n+k</sub></i >).
3589 *
3590 * @param methodName the name of the method that is undefined
3591 */
3592 static const StaticTypeWarningCode UNDEFINED_FUNCTION = const StaticTypeWarnin gCode.con1('UNDEFINED_FUNCTION', 15, "The function '%s' is not defined");
3593
3594 /**
3588 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is a static type 3595 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is a static type
3589 * warning if <i>T</i> does not have a getter named <i>m</i>. 3596 * warning if <i>T</i> does not have a getter named <i>m</i>.
3590 * 3597 *
3591 * @param getterName the name of the getter 3598 * @param getterName the name of the getter
3592 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for 3599 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for
3593 */ 3600 */
3594 static const StaticTypeWarningCode UNDEFINED_GETTER = const StaticTypeWarningC ode.con1('UNDEFINED_GETTER', 15, "There is no such getter '%s' in '%s'"); 3601 static const StaticTypeWarningCode UNDEFINED_GETTER = const StaticTypeWarningC ode.con1('UNDEFINED_GETTER', 16, "There is no such getter '%s' in '%s'");
3595 3602
3596 /** 3603 /**
3597 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I t is a static type 3604 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I t is a static type
3598 * warning if <i>T</i> does not have an accessible instance member named <i>m< /i>. 3605 * warning if <i>T</i> does not have an accessible instance member named <i>m< /i>.
3599 * 3606 *
3600 * @param methodName the name of the method that is undefined 3607 * @param methodName the name of the method that is undefined
3601 * @param typeName the resolved type name that the method lookup is happening on 3608 * @param typeName the resolved type name that the method lookup is happening on
3602 */ 3609 */
3603 static const StaticTypeWarningCode UNDEFINED_METHOD = const StaticTypeWarningC ode.con1('UNDEFINED_METHOD', 16, "The method '%s' is not defined for the class ' %s'"); 3610 static const StaticTypeWarningCode UNDEFINED_METHOD = const StaticTypeWarningC ode.con1('UNDEFINED_METHOD', 17, "The method '%s' is not defined for the class ' %s'");
3604 3611
3605 /** 3612 /**
3606 * 12.18 Assignment: Evaluation of an assignment of the form 3613 * 12.18 Assignment: Evaluation of an assignment of the form
3607 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is equiva lent to the 3614 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is equiva lent to the
3608 * evaluation of the expression (a, i, e){a.[]=(i, e); return e;} (<i>e<sub>1< /sub></i>, 3615 * evaluation of the expression (a, i, e){a.[]=(i, e); return e;} (<i>e<sub>1< /sub></i>,
3609 * <i>e<sub>2</sub></i>, <i>e<sub>2</sub></i>). 3616 * <i>e<sub>2</sub></i>, <i>e<sub>2</sub></i>).
3610 * 3617 *
3611 * 12.29 Assignable Expressions: An assignable expression of the form 3618 * 12.29 Assignable Expressions: An assignable expression of the form
3612 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] is evaluated as a method invocat ion of the operator 3619 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] is evaluated as a method invocat ion of the operator
3613 * method [] on <i>e<sub>1</sub></i> with argument <i>e<sub>2</sub></i>. 3620 * method [] on <i>e<sub>1</sub></i> with argument <i>e<sub>2</sub></i>.
3614 * 3621 *
3615 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I t is a static type 3622 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I t is a static type
3616 * warning if <i>T</i> does not have an accessible instance member named <i>m< /i>. 3623 * warning if <i>T</i> does not have an accessible instance member named <i>m< /i>.
3617 * 3624 *
3618 * @param operator the name of the operator 3625 * @param operator the name of the operator
3619 * @param enclosingType the name of the enclosing type where the operator is b eing looked for 3626 * @param enclosingType the name of the enclosing type where the operator is b eing looked for
3620 */ 3627 */
3621 static const StaticTypeWarningCode UNDEFINED_OPERATOR = const StaticTypeWarnin gCode.con1('UNDEFINED_OPERATOR', 17, "There is no such operator '%s' in '%s'"); 3628 static const StaticTypeWarningCode UNDEFINED_OPERATOR = const StaticTypeWarnin gCode.con1('UNDEFINED_OPERATOR', 18, "There is no such operator '%s' in '%s'");
3622 3629
3623 /** 3630 /**
3624 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. It is a static type 3631 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. It is a static type
3625 * warning if <i>T</i> does not have an accessible instance setter named <i>v= </i>. 3632 * warning if <i>T</i> does not have an accessible instance setter named <i>v= </i>.
3626 * 3633 *
3627 * @param setterName the name of the setter 3634 * @param setterName the name of the setter
3628 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for 3635 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for
3629 * @see #INACCESSIBLE_SETTER 3636 * @see #INACCESSIBLE_SETTER
3630 */ 3637 */
3631 static const StaticTypeWarningCode UNDEFINED_SETTER = const StaticTypeWarningC ode.con1('UNDEFINED_SETTER', 18, "There is no such setter '%s' in '%s'"); 3638 static const StaticTypeWarningCode UNDEFINED_SETTER = const StaticTypeWarningC ode.con1('UNDEFINED_SETTER', 19, "There is no such setter '%s' in '%s'");
3632 3639
3633 /** 3640 /**
3634 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form 3641 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form
3635 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip; 3642 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip;
3636 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static type warning if <i>S< /i> does not have an 3643 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static type warning if <i>S< /i> does not have an
3637 * accessible instance member named <i>m</i>. 3644 * accessible instance member named <i>m</i>.
3638 * 3645 *
3639 * @param methodName the name of the method that is undefined 3646 * @param methodName the name of the method that is undefined
3640 * @param typeName the resolved type name that the method lookup is happening on 3647 * @param typeName the resolved type name that the method lookup is happening on
3641 */ 3648 */
3642 static const StaticTypeWarningCode UNDEFINED_SUPER_METHOD = const StaticTypeWa rningCode.con1('UNDEFINED_SUPER_METHOD', 19, "There is no such method '%s' in '% s'"); 3649 static const StaticTypeWarningCode UNDEFINED_SUPER_METHOD = const StaticTypeWa rningCode.con1('UNDEFINED_SUPER_METHOD', 20, "There is no such method '%s' in '% s'");
3643 3650
3644 /** 3651 /**
3645 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does n ot have an 3652 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does n ot have an
3646 * accessible (3.2) instance member named <i>m</i>. 3653 * accessible (3.2) instance member named <i>m</i>.
3647 * 3654 *
3648 * This is a specialization of [INSTANCE_ACCESS_TO_STATIC_MEMBER] that is used when we are 3655 * This is a specialization of [INSTANCE_ACCESS_TO_STATIC_MEMBER] that is used when we are
3649 * able to find the name defined in a supertype. It exists to provide a more i nformative error 3656 * able to find the name defined in a supertype. It exists to provide a more i nformative error
3650 * message. 3657 * message.
3651 */ 3658 */
3652 static const StaticTypeWarningCode UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_M EMBER = const StaticTypeWarningCode.con1('UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STA TIC_MEMBER', 20, "Static members from supertypes must be qualified by the name o f the defining type"); 3659 static const StaticTypeWarningCode UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_M EMBER = const StaticTypeWarningCode.con1('UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STA TIC_MEMBER', 21, "Static members from supertypes must be qualified by the name o f the defining type");
3653 3660
3654 /** 3661 /**
3655 * 15.8 Parameterized Types: It is a static type warning if <i>G</i> is not a generic type with 3662 * 15.8 Parameterized Types: It is a static type warning if <i>G</i> is not a generic type with
3656 * exactly <i>n</i> type parameters. 3663 * exactly <i>n</i> type parameters.
3657 * 3664 *
3658 * @param typeName the name of the type being referenced (<i>G</i>) 3665 * @param typeName the name of the type being referenced (<i>G</i>)
3659 * @param parameterCount the number of type parameters that were declared 3666 * @param parameterCount the number of type parameters that were declared
3660 * @param argumentCount the number of type arguments provided 3667 * @param argumentCount the number of type arguments provided
3661 * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS 3668 * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS
3662 * @see CompileTimeErrorCode#NEW_WITH_INVALID_TYPE_PARAMETERS 3669 * @see CompileTimeErrorCode#NEW_WITH_INVALID_TYPE_PARAMETERS
3663 */ 3670 */
3664 static const StaticTypeWarningCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = const Stat icTypeWarningCode.con1('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 21, "The type '%s' is d eclared with %d type parameters, but %d type arguments were given"); 3671 static const StaticTypeWarningCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = const Stat icTypeWarningCode.con1('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 22, "The type '%s' is d eclared with %d type parameters, but %d type arguments were given");
3665 3672
3666 static const List<StaticTypeWarningCode> values = const [ 3673 static const List<StaticTypeWarningCode> values = const [
3667 EXPECTED_ONE_LIST_TYPE_ARGUMENTS, 3674 EXPECTED_ONE_LIST_TYPE_ARGUMENTS,
3668 EXPECTED_TWO_MAP_TYPE_ARGUMENTS, 3675 EXPECTED_TWO_MAP_TYPE_ARGUMENTS,
3669 INACCESSIBLE_SETTER, 3676 INACCESSIBLE_SETTER,
3670 INCONSISTENT_METHOD_INHERITANCE, 3677 INCONSISTENT_METHOD_INHERITANCE,
3671 INSTANCE_ACCESS_TO_STATIC_MEMBER, 3678 INSTANCE_ACCESS_TO_STATIC_MEMBER,
3672 INVALID_ASSIGNMENT, 3679 INVALID_ASSIGNMENT,
3673 INVOCATION_OF_NON_FUNCTION, 3680 INVOCATION_OF_NON_FUNCTION,
3674 INVOCATION_OF_NON_FUNCTION_EXPRESSION, 3681 INVOCATION_OF_NON_FUNCTION_EXPRESSION,
3675 NON_BOOL_CONDITION, 3682 NON_BOOL_CONDITION,
3676 NON_BOOL_EXPRESSION, 3683 NON_BOOL_EXPRESSION,
3677 NON_BOOL_NEGATION_EXPRESSION, 3684 NON_BOOL_NEGATION_EXPRESSION,
3678 NON_TYPE_AS_TYPE_ARGUMENT, 3685 NON_TYPE_AS_TYPE_ARGUMENT,
3679 RETURN_OF_INVALID_TYPE, 3686 RETURN_OF_INVALID_TYPE,
3680 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, 3687 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS,
3681 TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND, 3688 TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND,
3689 UNDEFINED_FUNCTION,
3682 UNDEFINED_GETTER, 3690 UNDEFINED_GETTER,
3683 UNDEFINED_METHOD, 3691 UNDEFINED_METHOD,
3684 UNDEFINED_OPERATOR, 3692 UNDEFINED_OPERATOR,
3685 UNDEFINED_SETTER, 3693 UNDEFINED_SETTER,
3686 UNDEFINED_SUPER_METHOD, 3694 UNDEFINED_SUPER_METHOD,
3687 UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER, 3695 UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER,
3688 WRONG_NUMBER_OF_TYPE_ARGUMENTS]; 3696 WRONG_NUMBER_OF_TYPE_ARGUMENTS];
3689 3697
3690 /** 3698 /**
3691 * The template used to create the message to be displayed for this error. 3699 * The template used to create the message to be displayed for this error.
(...skipping 20 matching lines...) Expand all
3712 * @param correction the template used to create the correction to be displaye d for the error 3720 * @param correction the template used to create the correction to be displaye d for the error
3713 */ 3721 */
3714 const StaticTypeWarningCode.con2(String name, int ordinal, this.message, this. correction) : super(name, ordinal); 3722 const StaticTypeWarningCode.con2(String name, int ordinal, this.message, this. correction) : super(name, ordinal);
3715 3723
3716 @override 3724 @override
3717 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 3725 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
3718 3726
3719 @override 3727 @override
3720 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 3728 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
3721 } 3729 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698