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

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

Issue 29313003: Don't evaluate << because of possible overflow. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.error; 3 library engine.error;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'source.dart'; 5 import 'source.dart';
6 import 'ast.dart' show ASTNode; 6 import 'ast.dart' show ASTNode;
7 import 'scanner.dart' show Token; 7 import 'scanner.dart' show Token;
8 /** 8 /**
9 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er rorCode] 9 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er rorCode]
10 * . 10 * .
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 * * Initialization at the declaration of <i>f</i>. 2364 * * Initialization at the declaration of <i>f</i>.
2365 * * Initialization by means of an initializing formal of <i>k</i>. 2365 * * Initialization by means of an initializing formal of <i>k</i>.
2366 * 2366 *
2367 * or a static warning occurs. 2367 * or a static warning occurs.
2368 * 2368 *
2369 * @param name the name of the uninitialized final variable 2369 * @param name the name of the uninitialized final variable
2370 */ 2370 */
2371 static final StaticWarningCode FINAL_NOT_INITIALIZED = new StaticWarningCode.c on1('FINAL_NOT_INITIALIZED', 26, "The final variable '%s' must be initialized"); 2371 static final StaticWarningCode FINAL_NOT_INITIALIZED = new StaticWarningCode.c on1('FINAL_NOT_INITIALIZED', 26, "The final variable '%s' must be initialized");
2372 2372
2373 /** 2373 /**
2374 * 15.5 Function Types: It is a static warning if a concrete class implements Function and does
2375 * not have a concrete method named call().
2376 */
2377 static final StaticWarningCode FUNCTION_WITHOUT_CALL = new StaticWarningCode.c on1('FUNCTION_WITHOUT_CALL', 27, "Concrete classes that implement Function must implement the method call()");
2378
2379 /**
2374 * 14.1 Imports: It is a static warning to import two different libraries with the same name. 2380 * 14.1 Imports: It is a static warning to import two different libraries with the same name.
2375 * 2381 *
2376 * @param uri1 the uri pointing to a first library 2382 * @param uri1 the uri pointing to a first library
2377 * @param uri2 the uri pointing to a second library 2383 * @param uri2 the uri pointing to a second library
2378 * @param name the shared name of the imported libraries 2384 * @param name the shared name of the imported libraries
2379 */ 2385 */
2380 static final StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = new StaticWarn ingCode.con1('IMPORT_DUPLICATED_LIBRARY_NAME', 27, "The imported libraries '%s' and '%s' should not have the same name '%s'"); 2386 static final StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = new StaticWarn ingCode.con1('IMPORT_DUPLICATED_LIBRARY_NAME', 28, "The imported libraries '%s' and '%s' should not have the same name '%s'");
2381 2387
2382 /** 2388 /**
2383 * 8.1.1 Inheritance and Overriding: However, if there are multiple members <i >m<sub>1</sub>, 2389 * 8.1.1 Inheritance and Overriding: However, if there are multiple members <i >m<sub>1</sub>,
2384 * &hellip; m<sub>k</sub></i> with the same name <i>n</i> that would be inheri ted (because 2390 * &hellip; m<sub>k</sub></i> with the same name <i>n</i> that would be inheri ted (because
2385 * identically named members existed in several superinterfaces) then at most one member is 2391 * identically named members existed in several superinterfaces) then at most one member is
2386 * inherited. 2392 * inherited.
2387 * 2393 *
2388 * 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 2394 * 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
2389 * not all of the <i>m<sub>i</sub></i> are setters, none of the <i>m<sub>i</su b></i> are 2395 * not all of the <i>m<sub>i</sub></i> are setters, none of the <i>m<sub>i</su b></i> are
2390 * inherited, and a static warning is issued. 2396 * inherited, and a static warning is issued.
2391 */ 2397 */
2392 static final StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH OD = new StaticWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH OD', 28, "'%s' is inherited as a getter and also a method"); 2398 static final StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH OD = new StaticWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH OD', 29, "'%s' is inherited as a getter and also a method");
2393 2399
2394 /** 2400 /**
2395 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a n instance method 2401 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a n instance method
2396 * named <i>n</i> and an accessible static member named <i>n</i> is declared i n a superclass of 2402 * named <i>n</i> and an accessible static member named <i>n</i> is declared i n a superclass of
2397 * <i>C</i>. 2403 * <i>C</i>.
2398 * 2404 *
2399 * @param memberName the name of the member with the name conflict 2405 * @param memberName the name of the member with the name conflict
2400 * @param superclassName the name of the enclosing class that has the static m ember 2406 * @param superclassName the name of the enclosing class that has the static m ember
2401 */ 2407 */
2402 static final StaticWarningCode INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_S TATIC = new StaticWarningCode.con1('INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLAS S_STATIC', 29, "'%s' collides with a static member in the superclass '%s'"); 2408 static final StaticWarningCode INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_S TATIC = new StaticWarningCode.con1('INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLAS S_STATIC', 30, "'%s' collides with a static member in the superclass '%s'");
2403 2409
2404 /** 2410 /**
2405 * 7.2 Getters: It is a static warning if a getter <i>m1</i> overrides a gette r <i>m2</i> and the 2411 * 7.2 Getters: It is a static warning if a getter <i>m1</i> overrides a gette r <i>m2</i> and the
2406 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 2412 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
2407 * 2413 *
2408 * @param actualReturnTypeName the name of the expected return type 2414 * @param actualReturnTypeName the name of the expected return type
2409 * @param expectedReturnType the name of the actual return type, not assignabl e to the 2415 * @param expectedReturnType the name of the actual return type, not assignabl e to the
2410 * actualReturnTypeName 2416 * actualReturnTypeName
2411 * @param className the name of the class where the overridden getter is decla red 2417 * @param className the name of the class where the overridden getter is decla red
2412 * @see #INVALID_METHOD_OVERRIDE_RETURN_TYPE 2418 * @see #INVALID_METHOD_OVERRIDE_RETURN_TYPE
2413 */ 2419 */
2414 static final StaticWarningCode INVALID_GETTER_OVERRIDE_RETURN_TYPE = new Stati cWarningCode.con1('INVALID_GETTER_OVERRIDE_RETURN_TYPE', 30, "The return type '% s' is not assignable to '%s' as required by the getter it is overriding from '%s '"); 2420 static final StaticWarningCode INVALID_GETTER_OVERRIDE_RETURN_TYPE = new Stati cWarningCode.con1('INVALID_GETTER_OVERRIDE_RETURN_TYPE', 31, "The return type '% s' is not assignable to '%s' as required by the getter it is overriding from '%s '");
2415 2421
2416 /** 2422 /**
2417 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2423 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2418 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 2424 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
2419 * 2425 *
2420 * @param actualParamTypeName the name of the expected parameter type 2426 * @param actualParamTypeName the name of the expected parameter type
2421 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 2427 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
2422 * actualParamTypeName 2428 * actualParamTypeName
2423 * @param className the name of the class where the overridden method is decla red 2429 * @param className the name of the class where the overridden method is decla red
2424 */ 2430 */
2425 static final StaticWarningCode INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE = new StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE', 31, "The para meter type '%s' is not assignable to '%s' as required by the method it is overri ding from '%s'"); 2431 static final StaticWarningCode INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE = new StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE', 32, "The para meter type '%s' is not assignable to '%s' as required by the method it is overri ding from '%s'");
2426 2432
2427 /** 2433 /**
2428 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2434 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2429 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 2435 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
2430 * 2436 *
2431 * @param actualParamTypeName the name of the expected parameter type 2437 * @param actualParamTypeName the name of the expected parameter type
2432 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 2438 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
2433 * actualParamTypeName 2439 * actualParamTypeName
2434 * @param className the name of the class where the overridden method is decla red 2440 * @param className the name of the class where the overridden method is decla red
2435 * @see #INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE 2441 * @see #INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE
2436 */ 2442 */
2437 static final StaticWarningCode INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE = new StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE', 32, "The pa rameter type '%s' is not assignable to '%s' as required by the method it is over riding from '%s'"); 2443 static final StaticWarningCode INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE = new StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE', 33, "The pa rameter type '%s' is not assignable to '%s' as required by the method it is over riding from '%s'");
2438 2444
2439 /** 2445 /**
2440 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2446 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2441 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 2447 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
2442 * 2448 *
2443 * @param actualParamTypeName the name of the expected parameter type 2449 * @param actualParamTypeName the name of the expected parameter type
2444 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 2450 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
2445 * actualParamTypeName 2451 * actualParamTypeName
2446 * @param className the name of the class where the overridden method is decla red 2452 * @param className the name of the class where the overridden method is decla red
2447 */ 2453 */
2448 static final StaticWarningCode INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE = n ew StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE', 33, "Th e parameter type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'"); 2454 static final StaticWarningCode INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE = n ew StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE', 34, "Th e parameter type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'");
2449 2455
2450 /** 2456 /**
2451 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2457 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2452 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 2458 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
2453 * 2459 *
2454 * @param actualReturnTypeName the name of the expected return type 2460 * @param actualReturnTypeName the name of the expected return type
2455 * @param expectedReturnType the name of the actual return type, not assignabl e to the 2461 * @param expectedReturnType the name of the actual return type, not assignabl e to the
2456 * actualReturnTypeName 2462 * actualReturnTypeName
2457 * @param className the name of the class where the overridden method is decla red 2463 * @param className the name of the class where the overridden method is decla red
2458 * @see #INVALID_GETTER_OVERRIDE_RETURN_TYPE 2464 * @see #INVALID_GETTER_OVERRIDE_RETURN_TYPE
2459 */ 2465 */
2460 static final StaticWarningCode INVALID_METHOD_OVERRIDE_RETURN_TYPE = new Stati cWarningCode.con1('INVALID_METHOD_OVERRIDE_RETURN_TYPE', 34, "The return type '% s' is not assignable to '%s' as required by the method it is overriding from '%s '"); 2466 static final StaticWarningCode INVALID_METHOD_OVERRIDE_RETURN_TYPE = new Stati cWarningCode.con1('INVALID_METHOD_OVERRIDE_RETURN_TYPE', 35, "The return type '% s' is not assignable to '%s' as required by the method it is overriding from '%s '");
2461 2467
2462 /** 2468 /**
2463 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2469 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2464 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies a default value for 2470 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies a default value for
2465 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff erent default value 2471 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff erent default value
2466 * for <i>p</i>. 2472 * for <i>p</i>.
2467 */ 2473 */
2468 static final StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED = new StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED', 35, "Parameters cannot override default values, this method overrides '%s.%s' w here '%s' has a different value"); 2474 static final StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED = new StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED', 36, "Parameters cannot override default values, this method overrides '%s.%s' w here '%s' has a different value");
2469 2475
2470 /** 2476 /**
2471 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2477 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2472 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies a default value for 2478 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies a default value for
2473 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff erent default value 2479 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff erent default value
2474 * for <i>p</i>. 2480 * for <i>p</i>.
2475 */ 2481 */
2476 static final StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSIT IONAL = new StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_PO SITIONAL', 36, "Parameters cannot override default values, this method overrides '%s.%s' where this positional parameter has a different value"); 2482 static final StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSIT IONAL = new StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_PO SITIONAL', 37, "Parameters cannot override default values, this method overrides '%s.%s' where this positional parameter has a different value");
2477 2483
2478 /** 2484 /**
2479 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2485 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2480 * instance member <i>m2</i> and <i>m1</i> does not declare all the named para meters declared by 2486 * instance member <i>m2</i> and <i>m1</i> does not declare all the named para meters declared by
2481 * <i>m2</i>. 2487 * <i>m2</i>.
2482 * 2488 *
2483 * @param paramCount the number of named parameters in the overridden member 2489 * @param paramCount the number of named parameters in the overridden member
2484 * @param className the name of the class from the overridden method 2490 * @param className the name of the class from the overridden method
2485 */ 2491 */
2486 static final StaticWarningCode INVALID_OVERRIDE_NAMED = new StaticWarningCode. con1('INVALID_OVERRIDE_NAMED', 37, "Missing the named parameter '%s' to match th e overridden method from '%s'"); 2492 static final StaticWarningCode INVALID_OVERRIDE_NAMED = new StaticWarningCode. con1('INVALID_OVERRIDE_NAMED', 38, "Missing the named parameter '%s' to match th e overridden method from '%s'");
2487 2493
2488 /** 2494 /**
2489 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2495 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2490 * instance member <i>m2</i> and <i>m1</i> has fewer positional parameters tha n <i>m2</i>. 2496 * instance member <i>m2</i> and <i>m1</i> has fewer positional parameters tha n <i>m2</i>.
2491 * 2497 *
2492 * @param paramCount the number of positional parameters in the overridden mem ber 2498 * @param paramCount the number of positional parameters in the overridden mem ber
2493 * @param className the name of the class from the overridden method 2499 * @param className the name of the class from the overridden method
2494 */ 2500 */
2495 static final StaticWarningCode INVALID_OVERRIDE_POSITIONAL = new StaticWarning Code.con1('INVALID_OVERRIDE_POSITIONAL', 38, "Must have at least %d parameters t o match the overridden method from '%s'"); 2501 static final StaticWarningCode INVALID_OVERRIDE_POSITIONAL = new StaticWarning Code.con1('INVALID_OVERRIDE_POSITIONAL', 39, "Must have at least %d parameters t o match the overridden method from '%s'");
2496 2502
2497 /** 2503 /**
2498 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 2504 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
2499 * instance member <i>m2</i> and <i>m1</i> has a greater number of required pa rameters than 2505 * instance member <i>m2</i> and <i>m1</i> has a greater number of required pa rameters than
2500 * <i>m2</i>. 2506 * <i>m2</i>.
2501 * 2507 *
2502 * @param paramCount the number of required parameters in the overridden membe r 2508 * @param paramCount the number of required parameters in the overridden membe r
2503 * @param className the name of the class from the overridden method 2509 * @param className the name of the class from the overridden method
2504 */ 2510 */
2505 static final StaticWarningCode INVALID_OVERRIDE_REQUIRED = new StaticWarningCo de.con1('INVALID_OVERRIDE_REQUIRED', 39, "Must have %d required parameters or le ss to match the overridden method from '%s'"); 2511 static final StaticWarningCode INVALID_OVERRIDE_REQUIRED = new StaticWarningCo de.con1('INVALID_OVERRIDE_REQUIRED', 40, "Must have %d required parameters or le ss to match the overridden method from '%s'");
2506 2512
2507 /** 2513 /**
2508 * 7.3 Setters: It is a static warning if a setter <i>m1</i> overrides a sette r <i>m2</i> and the 2514 * 7.3 Setters: It is a static warning if a setter <i>m1</i> overrides a sette r <i>m2</i> and the
2509 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 2515 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
2510 * 2516 *
2511 * @param actualParamTypeName the name of the expected parameter type 2517 * @param actualParamTypeName the name of the expected parameter type
2512 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 2518 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
2513 * actualParamTypeName 2519 * actualParamTypeName
2514 * @param className the name of the class where the overridden setter is decla red 2520 * @param className the name of the class where the overridden setter is decla red
2515 * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE 2521 * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE
2516 */ 2522 */
2517 static final StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = new StaticWarningCode.con1('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 40, "The pa rameter type '%s' is not assignable to '%s' as required by the setter it is over riding from '%s'"); 2523 static final StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = new StaticWarningCode.con1('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 41, "The pa rameter type '%s' is not assignable to '%s' as required by the setter it is over riding from '%s'");
2518 2524
2519 /** 2525 /**
2520 * 12.6 Lists: A run-time list literal &lt;<i>E</i>&gt; [<i>e<sub>1</sub></i> ... 2526 * 12.6 Lists: A run-time list literal &lt;<i>E</i>&gt; [<i>e<sub>1</sub></i> ...
2521 * <i>e<sub>n</sub></i>] is evaluated as follows: 2527 * <i>e<sub>n</sub></i>] is evaluated as follows:
2522 * 2528 *
2523 * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument 2529 * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument
2524 * <i>o<sub>i+1</sub></i><i>, 1 &lt;= i &lt;= n</i> 2530 * <i>o<sub>i+1</sub></i><i>, 1 &lt;= i &lt;= n</i>
2525 * 2531 *
2526 * 2532 *
2527 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 2533 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
2528 * <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;= 2534 * <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;=
2529 * 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>. 2535 * 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>.
2530 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 2536 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
2531 * j &lt;= m</i>. 2537 * j &lt;= m</i>.
2532 */ 2538 */
2533 static final StaticWarningCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = new StaticWa rningCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 41, "The element type '%s' ca nnot be assigned to the list type '%s'"); 2539 static final StaticWarningCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = new StaticWa rningCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 42, "The element type '%s' ca nnot be assigned to the list type '%s'");
2534 2540
2535 /** 2541 /**
2536 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> : 2542 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> :
2537 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows: 2543 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows:
2538 * 2544 *
2539 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second 2545 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second
2540 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i> 2546 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i>
2541 * 2547 *
2542 * 2548 *
2543 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 2549 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
2544 * <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;= 2550 * <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;=
2545 * 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>. 2551 * 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>.
2546 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 2552 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
2547 * j &lt;= m</i>. 2553 * j &lt;= m</i>.
2548 */ 2554 */
2549 static final StaticWarningCode MAP_KEY_TYPE_NOT_ASSIGNABLE = new StaticWarning Code.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 42, "The element type '%s' cannot be as signed to the map key type '%s'"); 2555 static final StaticWarningCode MAP_KEY_TYPE_NOT_ASSIGNABLE = new StaticWarning Code.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 43, "The element type '%s' cannot be as signed to the map key type '%s'");
2550 2556
2551 /** 2557 /**
2552 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> : 2558 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> :
2553 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows: 2559 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows:
2554 * 2560 *
2555 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second 2561 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second
2556 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i> 2562 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i>
2557 * 2563 *
2558 * 2564 *
2559 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 2565 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
2560 * <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;= 2566 * <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;=
2561 * 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>. 2567 * 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>.
2562 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 2568 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
2563 * j &lt;= m</i>. 2569 * j &lt;= m</i>.
2564 */ 2570 */
2565 static final StaticWarningCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = new StaticWarni ngCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 43, "The element type '%s' cannot b e assigned to the map value type '%s'"); 2571 static final StaticWarningCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = new StaticWarni ngCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 44, "The element type '%s' cannot b e assigned to the map value type '%s'");
2566 2572
2567 /** 2573 /**
2568 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i> with argument type 2574 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i> with argument type
2569 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i > may not be 2575 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i > may not be
2570 * assigned to <i>S</i>. 2576 * assigned to <i>S</i>.
2571 */ 2577 */
2572 static final StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = new Static WarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES', 44, "The parameter type f or setter '%s' is '%s' which is not assignable to its getter (of type '%s')"); 2578 static final StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = new Static WarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES', 45, "The parameter type f or setter '%s' is '%s' which is not assignable to its getter (of type '%s')");
2573 2579
2574 /** 2580 /**
2575 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst ract class and 2581 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst ract class and
2576 * <i>q</i> is not a factory constructor. 2582 * <i>q</i> is not a factory constructor.
2577 */ 2583 */
2578 static final StaticWarningCode NEW_WITH_ABSTRACT_CLASS = new StaticWarningCode .con1('NEW_WITH_ABSTRACT_CLASS', 45, "Abstract classes cannot be created with a 'new' expression"); 2584 static final StaticWarningCode NEW_WITH_ABSTRACT_CLASS = new StaticWarningCode .con1('NEW_WITH_ABSTRACT_CLASS', 46, "Abstract classes cannot be created with a 'new' expression");
2579 2585
2580 /** 2586 /**
2581 * 15.8 Parameterized Types: Any use of a malbounded type gives rise to a stat ic warning. 2587 * 15.8 Parameterized Types: Any use of a malbounded type gives rise to a stat ic warning.
2582 * 2588 *
2583 * @param typeName the name of the type being referenced (<i>S</i>) 2589 * @param typeName the name of the type being referenced (<i>S</i>)
2584 * @param parameterCount the number of type parameters that were declared 2590 * @param parameterCount the number of type parameters that were declared
2585 * @param argumentCount the number of type arguments provided 2591 * @param argumentCount the number of type arguments provided
2586 * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS 2592 * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS
2587 * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS 2593 * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS
2588 */ 2594 */
2589 static final StaticWarningCode NEW_WITH_INVALID_TYPE_PARAMETERS = new StaticWa rningCode.con1('NEW_WITH_INVALID_TYPE_PARAMETERS', 46, "The type '%s' is declare d with %d type parameters, but %d type arguments were given"); 2595 static final StaticWarningCode NEW_WITH_INVALID_TYPE_PARAMETERS = new StaticWa rningCode.con1('NEW_WITH_INVALID_TYPE_PARAMETERS', 47, "The type '%s' is declare d with %d type parameters, but %d type arguments were given");
2590 2596
2591 /** 2597 /**
2592 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i n the current scope, 2598 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i n the current scope,
2593 * optionally followed by type arguments. 2599 * optionally followed by type arguments.
2594 * 2600 *
2595 * @param name the name of the non-type element 2601 * @param name the name of the non-type element
2596 */ 2602 */
2597 static final StaticWarningCode NEW_WITH_NON_TYPE = new StaticWarningCode.con1( 'NEW_WITH_NON_TYPE', 47, "The name '%s' is not a class"); 2603 static final StaticWarningCode NEW_WITH_NON_TYPE = new StaticWarningCode.con1( 'NEW_WITH_NON_TYPE', 48, "The name '%s' is not a class");
2598 2604
2599 /** 2605 /**
2600 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then: 2606 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then:
2601 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>, 2607 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>,
2602 * 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 2608 * 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
2603 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>. 2609 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>.
2604 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>: 2610 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>:
2605 * 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 2611 * 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
2606 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>. 2612 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>.
2607 */ 2613 */
2608 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = new StaticWarn ingCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR', 48, "The class '%s' does not have a constructor '%s'"); 2614 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = new StaticWarn ingCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR', 49, "The class '%s' does not have a constructor '%s'");
2609 2615
2610 /** 2616 /**
2611 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then: 2617 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then:
2612 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>, 2618 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>,
2613 * 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 2619 * 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
2614 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>. 2620 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>.
2615 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>: 2621 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>:
2616 * 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 2622 * 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
2617 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>. 2623 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>.
2618 */ 2624 */
2619 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = new St aticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 49, "The class '% s' does not have a default constructor"); 2625 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = new St aticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 50, "The class '% s' does not have a default constructor");
2620 2626
2621 /** 2627 /**
2622 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2628 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
2623 * abstract method. 2629 * abstract method.
2624 * 2630 *
2625 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own 2631 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own
2626 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i> 2632 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i>
2627 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit 2633 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit
2628 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>. 2634 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>.
2629 * 2635 *
2630 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or 2636 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or
2631 * inherited in a concrete class unless that member overrides a concrete one. 2637 * inherited in a concrete class unless that member overrides a concrete one.
2632 * 2638 *
2633 * @param memberName the name of the first member 2639 * @param memberName the name of the first member
2634 * @param memberName the name of the second member 2640 * @param memberName the name of the second member
2635 * @param memberName the name of the third member 2641 * @param memberName the name of the third member
2636 * @param memberName the name of the fourth member 2642 * @param memberName the name of the fourth member
2637 * @param additionalCount the number of additional missing members that aren't listed 2643 * @param additionalCount the number of additional missing members that aren't listed
2638 */ 2644 */
2639 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV E_PLUS = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER _FIVE_PLUS', 50, "Missing inherited members: '%s', '%s', '%s', '%s' and %d more" ); 2645 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV E_PLUS = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER _FIVE_PLUS', 51, "Missing inherited members: '%s', '%s', '%s', '%s' and %d more" );
2640 2646
2641 /** 2647 /**
2642 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2648 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
2643 * abstract method. 2649 * abstract method.
2644 * 2650 *
2645 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own 2651 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own
2646 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i> 2652 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i>
2647 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit 2653 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit
2648 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>. 2654 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>.
2649 * 2655 *
2650 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or 2656 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or
2651 * inherited in a concrete class unless that member overrides a concrete one. 2657 * inherited in a concrete class unless that member overrides a concrete one.
2652 * 2658 *
2653 * @param memberName the name of the first member 2659 * @param memberName the name of the first member
2654 * @param memberName the name of the second member 2660 * @param memberName the name of the second member
2655 * @param memberName the name of the third member 2661 * @param memberName the name of the third member
2656 * @param memberName the name of the fourth member 2662 * @param memberName the name of the fourth member
2657 */ 2663 */
2658 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU R = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR ', 51, "Missing inherited members: '%s', '%s', '%s' and '%s'"); 2664 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU R = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR ', 52, "Missing inherited members: '%s', '%s', '%s' and '%s'");
2659 2665
2660 /** 2666 /**
2661 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2667 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
2662 * abstract method. 2668 * abstract method.
2663 * 2669 *
2664 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own 2670 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own
2665 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i> 2671 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i>
2666 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit 2672 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit
2667 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>. 2673 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>.
2668 * 2674 *
2669 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or 2675 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or
2670 * inherited in a concrete class unless that member overrides a concrete one. 2676 * inherited in a concrete class unless that member overrides a concrete one.
2671 * 2677 *
2672 * @param memberName the name of the member 2678 * @param memberName the name of the member
2673 */ 2679 */
2674 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 52, "Missing inherited member '%s'"); 2680 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 53, "Missing inherited member '%s'");
2675 2681
2676 /** 2682 /**
2677 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2683 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
2678 * abstract method. 2684 * abstract method.
2679 * 2685 *
2680 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own 2686 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own
2681 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i> 2687 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i>
2682 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit 2688 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit
2683 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>. 2689 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>.
2684 * 2690 *
2685 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or 2691 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or
2686 * inherited in a concrete class unless that member overrides a concrete one. 2692 * inherited in a concrete class unless that member overrides a concrete one.
2687 * 2693 *
2688 * @param memberName the name of the first member 2694 * @param memberName the name of the first member
2689 * @param memberName the name of the second member 2695 * @param memberName the name of the second member
2690 * @param memberName the name of the third member 2696 * @param memberName the name of the third member
2691 */ 2697 */
2692 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR EE = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR EE', 53, "Missing inherited members: '%s', '%s' and '%s'"); 2698 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR EE = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR EE', 54, "Missing inherited members: '%s', '%s' and '%s'");
2693 2699
2694 /** 2700 /**
2695 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2701 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
2696 * abstract method. 2702 * abstract method.
2697 * 2703 *
2698 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own 2704 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar e its own
2699 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i> 2705 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf ace of <i>C</i>
2700 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit 2706 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not declare or inherit
2701 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>. 2707 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F' <: F</i>.
2702 * 2708 *
2703 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or 2709 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or
2704 * inherited in a concrete class unless that member overrides a concrete one. 2710 * inherited in a concrete class unless that member overrides a concrete one.
2705 * 2711 *
2706 * @param memberName the name of the first member 2712 * @param memberName the name of the first member
2707 * @param memberName the name of the second member 2713 * @param memberName the name of the second member
2708 */ 2714 */
2709 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 54, "Missing inherited members: '%s' and '%s'"); 2715 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 55, "Missing inherited members: '%s' and '%s'");
2710 2716
2711 /** 2717 /**
2712 * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s ub>2</sub>) s</i> or 2718 * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s ub>2</sub>) s</i> or
2713 * <i>on T s</i> matches an object <i>o</i> if the type of <i>o</i> is a subty pe of <i>T</i>. It 2719 * <i>on T s</i> matches an object <i>o</i> if the type of <i>o</i> is a subty pe of <i>T</i>. It
2714 * is a static warning if <i>T</i> does not denote a type available in the lex ical scope of the 2720 * is a static warning if <i>T</i> does not denote a type available in the lex ical scope of the
2715 * catch clause. 2721 * catch clause.
2716 * 2722 *
2717 * @param name the name of the non-type element 2723 * @param name the name of the non-type element
2718 */ 2724 */
2719 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod e.con1('NON_TYPE_IN_CATCH_CLAUSE', 55, "The name '%s' is not a type and cannot b e used in an on-catch clause"); 2725 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod e.con1('NON_TYPE_IN_CATCH_CLAUSE', 56, "The name '%s' is not a type and cannot b e used in an on-catch clause");
2720 2726
2721 /** 2727 /**
2722 * 7.1.1 Operators: It is a static warning if the return type of the user-decl ared operator []= is 2728 * 7.1.1 Operators: It is a static warning if the return type of the user-decl ared operator []= is
2723 * explicitly declared and not void. 2729 * explicitly declared and not void.
2724 */ 2730 */
2725 static final StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = new StaticWarnin gCode.con1('NON_VOID_RETURN_FOR_OPERATOR', 56, "The return type of the operator []= must be 'void'"); 2731 static final StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = new StaticWarnin gCode.con1('NON_VOID_RETURN_FOR_OPERATOR', 57, "The return type of the operator []= must be 'void'");
2726 2732
2727 /** 2733 /**
2728 * 7.3 Setters: It is a static warning if a setter declares a return type othe r than void. 2734 * 7.3 Setters: It is a static warning if a setter declares a return type othe r than void.
2729 */ 2735 */
2730 static final StaticWarningCode NON_VOID_RETURN_FOR_SETTER = new StaticWarningC ode.con1('NON_VOID_RETURN_FOR_SETTER', 57, "The return type of the setter must b e 'void'"); 2736 static final StaticWarningCode NON_VOID_RETURN_FOR_SETTER = new StaticWarningC ode.con1('NON_VOID_RETURN_FOR_SETTER', 58, "The return type of the setter must b e 'void'");
2731 2737
2732 /** 2738 /**
2733 * 15.1 Static Types: A type <i>T</i> is malformed iff: * <i>T</i> has the for m <i>id</i> or the 2739 * 15.1 Static Types: A type <i>T</i> is malformed iff: * <i>T</i> has the for m <i>id</i> or the
2734 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</ i> (respectively 2740 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</ i> (respectively
2735 * <i>prefix.id</i>) does not denote a type. * <i>T</i> denotes a type paramet er in the 2741 * <i>prefix.id</i>) does not denote a type. * <i>T</i> denotes a type paramet er in the
2736 * enclosing lexical scope, but occurs in the signature or body of a static me mber. * 2742 * enclosing lexical scope, but occurs in the signature or body of a static me mber. *
2737 * <i>T</i> is a parameterized type of the form <i>G&lt;S<sub>1</sub>, .., S<s ub>n</sub>&gt;</i>, 2743 * <i>T</i> is a parameterized type of the form <i>G&lt;S<sub>1</sub>, .., S<s ub>n</sub>&gt;</i>,
2738 * and <i>G</i> is malformed. 2744 * and <i>G</i> is malformed.
2739 * 2745 *
2740 * Any use of a malformed type gives rise to a static warning. 2746 * Any use of a malformed type gives rise to a static warning.
2741 * 2747 *
2742 * @param nonTypeName the name that is not a type 2748 * @param nonTypeName the name that is not a type
2743 */ 2749 */
2744 static final StaticWarningCode NOT_A_TYPE = new StaticWarningCode.con1('NOT_A_ TYPE', 58, "%s is not a type"); 2750 static final StaticWarningCode NOT_A_TYPE = new StaticWarningCode.con1('NOT_A_ TYPE', 59, "%s is not a type");
2745 2751
2746 /** 2752 /**
2747 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</ i> or if <i>m &gt; 2753 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</ i> or if <i>m &gt;
2748 * n</i>. 2754 * n</i>.
2749 * 2755 *
2750 * @param requiredCount the expected number of required arguments 2756 * @param requiredCount the expected number of required arguments
2751 * @param argumentCount the actual number of positional arguments given 2757 * @param argumentCount the actual number of positional arguments given
2752 * @see #EXTRA_POSITIONAL_ARGUMENTS 2758 * @see #EXTRA_POSITIONAL_ARGUMENTS
2753 */ 2759 */
2754 static final StaticWarningCode NOT_ENOUGH_REQUIRED_ARGUMENTS = new StaticWarni ngCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 59, "%d required argument(s) expect ed, but %d found"); 2760 static final StaticWarningCode NOT_ENOUGH_REQUIRED_ARGUMENTS = new StaticWarni ngCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 60, "%d required argument(s) expect ed, but %d found");
2755 2761
2756 /** 2762 /**
2757 * 14.3 Parts: It is a static warning if the referenced part declaration <i>p< /i> names a library 2763 * 14.3 Parts: It is a static warning if the referenced part declaration <i>p< /i> names a library
2758 * other than the current library as the library to which <i>p</i> belongs. 2764 * other than the current library as the library to which <i>p</i> belongs.
2759 * 2765 *
2760 * @param expectedLibraryName the name of expected library name 2766 * @param expectedLibraryName the name of expected library name
2761 * @param actualLibraryName the non-matching actual library name from the "par t of" declaration 2767 * @param actualLibraryName the non-matching actual library name from the "par t of" declaration
2762 */ 2768 */
2763 static final StaticWarningCode PART_OF_DIFFERENT_LIBRARY = new StaticWarningCo de.con1('PART_OF_DIFFERENT_LIBRARY', 60, "Expected this library to be part of '% s', not '%s'"); 2769 static final StaticWarningCode PART_OF_DIFFERENT_LIBRARY = new StaticWarningCo de.con1('PART_OF_DIFFERENT_LIBRARY', 61, "Expected this library to be part of '% s', not '%s'");
2764 2770
2765 /** 2771 /**
2766 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i s not a subtype of 2772 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i s not a subtype of
2767 * the type of <i>k</i>. 2773 * the type of <i>k</i>.
2768 * 2774 *
2769 * @param redirectedName the name of the redirected constructor 2775 * @param redirectedName the name of the redirected constructor
2770 * @param redirectingName the name of the redirecting constructor 2776 * @param redirectingName the name of the redirecting constructor
2771 */ 2777 */
2772 static final StaticWarningCode REDIRECT_TO_INVALID_FUNCTION_TYPE = new StaticW arningCode.con1('REDIRECT_TO_INVALID_FUNCTION_TYPE', 61, "The redirected constru ctor '%s' has incompatible parameters with '%s'"); 2778 static final StaticWarningCode REDIRECT_TO_INVALID_FUNCTION_TYPE = new StaticW arningCode.con1('REDIRECT_TO_INVALID_FUNCTION_TYPE', 62, "The redirected constru ctor '%s' has incompatible parameters with '%s'");
2773 2779
2774 /** 2780 /**
2775 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i s not a subtype of 2781 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i s not a subtype of
2776 * the type of <i>k</i>. 2782 * the type of <i>k</i>.
2777 * 2783 *
2778 * @param redirectedName the name of the redirected constructor return type 2784 * @param redirectedName the name of the redirected constructor return type
2779 * @param redirectingName the name of the redirecting constructor return type 2785 * @param redirectingName the name of the redirecting constructor return type
2780 */ 2786 */
2781 static final StaticWarningCode REDIRECT_TO_INVALID_RETURN_TYPE = new StaticWar ningCode.con1('REDIRECT_TO_INVALID_RETURN_TYPE', 62, "The return type '%s' of th e redirected constructor is not assignable to '%s'"); 2787 static final StaticWarningCode REDIRECT_TO_INVALID_RETURN_TYPE = new StaticWar ningCode.con1('REDIRECT_TO_INVALID_RETURN_TYPE', 63, "The return type '%s' of th e redirected constructor is not assignable to '%s'");
2782 2788
2783 /** 2789 /**
2784 * 7.6.2 Factories: It is a static warning if type does not denote a class acc essible in the 2790 * 7.6.2 Factories: It is a static warning if type does not denote a class acc essible in the
2785 * current scope; if type does denote such a class <i>C</i> it is a static war ning if the 2791 * current scope; if type does denote such a class <i>C</i> it is a static war ning if the
2786 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const ructor of <i>C</i>. 2792 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const ructor of <i>C</i>.
2787 */ 2793 */
2788 static final StaticWarningCode REDIRECT_TO_MISSING_CONSTRUCTOR = new StaticWar ningCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 63, "The constructor '%s' could not be found in '%s'"); 2794 static final StaticWarningCode REDIRECT_TO_MISSING_CONSTRUCTOR = new StaticWar ningCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 64, "The constructor '%s' could not be found in '%s'");
2789 2795
2790 /** 2796 /**
2791 * 7.6.2 Factories: It is a static warning if type does not denote a class acc essible in the 2797 * 7.6.2 Factories: It is a static warning if type does not denote a class acc essible in the
2792 * current scope; if type does denote such a class <i>C</i> it is a static war ning if the 2798 * current scope; if type does denote such a class <i>C</i> it is a static war ning if the
2793 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const ructor of <i>C</i>. 2799 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const ructor of <i>C</i>.
2794 */ 2800 */
2795 static final StaticWarningCode REDIRECT_TO_NON_CLASS = new StaticWarningCode.c on1('REDIRECT_TO_NON_CLASS', 64, "The name '%s' is not a type and cannot be used in a redirected constructor"); 2801 static final StaticWarningCode REDIRECT_TO_NON_CLASS = new StaticWarningCode.c on1('REDIRECT_TO_NON_CLASS', 65, "The name '%s' is not a type and cannot be used in a redirected constructor");
2796 2802
2797 /** 2803 /**
2798 * 13.11 Return: Let <i>f</i> be the function immediately enclosing a return s tatement of the form 2804 * 13.11 Return: Let <i>f</i> be the function immediately enclosing a return s tatement of the form
2799 * <i>return;</i> It is a static warning if both of the following conditions h old: 2805 * <i>return;</i> It is a static warning if both of the following conditions h old:
2800 * <ol> 2806 * <ol>
2801 * * <i>f</i> is not a generative constructor. 2807 * * <i>f</i> is not a generative constructor.
2802 * * The return type of <i>f</i> may not be assigned to void. 2808 * * The return type of <i>f</i> may not be assigned to void.
2803 * </ol> 2809 * </ol>
2804 */ 2810 */
2805 static final StaticWarningCode RETURN_WITHOUT_VALUE = new StaticWarningCode.co n1('RETURN_WITHOUT_VALUE', 65, "Missing return value after 'return'"); 2811 static final StaticWarningCode RETURN_WITHOUT_VALUE = new StaticWarningCode.co n1('RETURN_WITHOUT_VALUE', 66, "Missing return value after 'return'");
2806 2812
2807 /** 2813 /**
2808 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method 2814 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method
2809 * or getter <i>m</i>. 2815 * or getter <i>m</i>.
2810 * 2816 *
2811 * @param memberName the name of the instance member 2817 * @param memberName the name of the instance member
2812 */ 2818 */
2813 static final StaticWarningCode STATIC_ACCESS_TO_INSTANCE_MEMBER = new StaticWa rningCode.con1('STATIC_ACCESS_TO_INSTANCE_MEMBER', 66, "Instance member '%s' can not be accessed using static access"); 2819 static final StaticWarningCode STATIC_ACCESS_TO_INSTANCE_MEMBER = new StaticWa rningCode.con1('STATIC_ACCESS_TO_INSTANCE_MEMBER', 67, "Instance member '%s' can not be accessed using static access");
2814 2820
2815 /** 2821 /**
2816 * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assi gned to the type of 2822 * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assi gned to the type of
2817 * <i>e<sub>k</sub></i>. 2823 * <i>e<sub>k</sub></i>.
2818 */ 2824 */
2819 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa rningCode.con1('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 67, "Type '%s' of the switch expression is not assignable to the type '%s' of case expressions"); 2825 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa rningCode.con1('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 68, "Type '%s' of the switch expression is not assignable to the type '%s' of case expressions");
2820 2826
2821 /** 2827 /**
2822 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type available in the 2828 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type available in the
2823 * current lexical scope. 2829 * current lexical scope.
2824 */ 2830 */
2825 static final StaticWarningCode TYPE_TEST_NON_TYPE = new StaticWarningCode.con1 ('TYPE_TEST_NON_TYPE', 68, "The name '%s' is not a type and cannot be used in an 'is' expression"); 2831 static final StaticWarningCode TYPE_TEST_NON_TYPE = new StaticWarningCode.con1 ('TYPE_TEST_NON_TYPE', 69, "The name '%s' is not a type and cannot be used in an 'is' expression");
2826 2832
2827 /** 2833 /**
2828 * 10 Generics: However, a type parameter is considered to be a malformed type when referenced by 2834 * 10 Generics: However, a type parameter is considered to be a malformed type when referenced by
2829 * a static member. 2835 * a static member.
2830 * 2836 *
2831 * 15.1 Static Types: Any use of a malformed type gives rise to a static warni ng. A malformed type 2837 * 15.1 Static Types: Any use of a malformed type gives rise to a static warni ng. A malformed type
2832 * is then interpreted as dynamic by the static type checker and the runtime. 2838 * is then interpreted as dynamic by the static type checker and the runtime.
2833 */ 2839 */
2834 static final StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = new Stati cWarningCode.con1('TYPE_PARAMETER_REFERENCED_BY_STATIC', 69, "Static members can not reference type parameters"); 2840 static final StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = new Stati cWarningCode.con1('TYPE_PARAMETER_REFERENCED_BY_STATIC', 70, "Static members can not reference type parameters");
2835 2841
2836 /** 2842 /**
2837 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form 2843 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form
2838 * <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</ sub>, &hellip; 2844 * <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</ sub>, &hellip;
2839 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d oes not denote a 2845 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d oes not denote a
2840 * class in the current scope. 2846 * class in the current scope.
2841 * 2847 *
2842 * @param undefinedClassName the name of the undefined class 2848 * @param undefinedClassName the name of the undefined class
2843 */ 2849 */
2844 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode.con1('U NDEFINED_CLASS', 70, "Undefined class '%s'"); 2850 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode.con1('U NDEFINED_CLASS', 71, "Undefined class '%s'");
2845 2851
2846 /** 2852 /**
2847 * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool". 2853 * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool".
2848 */ 2854 */
2849 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode .con1('UNDEFINED_CLASS_BOOLEAN', 71, "Undefined class 'boolean'; did you mean 'b ool'?"); 2855 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode .con1('UNDEFINED_CLASS_BOOLEAN', 72, "Undefined class 'boolean'; did you mean 'b ool'?");
2850 2856
2851 /** 2857 /**
2852 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</ i> in the enclosing 2858 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</ i> in the enclosing
2853 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e xplicitly, a getter 2859 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e xplicitly, a getter
2854 * named <i>m</i>. 2860 * named <i>m</i>.
2855 * 2861 *
2856 * @param getterName the name of the getter 2862 * @param getterName the name of the getter
2857 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for 2863 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for
2858 */ 2864 */
2859 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode.con1(' UNDEFINED_GETTER', 72, "There is no such getter '%s' in '%s'"); 2865 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode.con1(' UNDEFINED_GETTER', 73, "There is no such getter '%s' in '%s'");
2860 2866
2861 /** 2867 /**
2862 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form 2868 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form
2863 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or 2869 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or
2864 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the 2870 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the
2865 * lexical scope enclosing the expression. 2871 * lexical scope enclosing the expression.
2866 * 2872 *
2867 * @param name the name of the identifier 2873 * @param name the name of the identifier
2868 */ 2874 */
2869 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode.co n1('UNDEFINED_IDENTIFIER', 73, "Undefined name '%s'"); 2875 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode.co n1('UNDEFINED_IDENTIFIER', 74, "Undefined name '%s'");
2870 2876
2871 /** 2877 /**
2872 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>, 2878 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
2873 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ... 2879 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ...
2874 * <i>p<sub>n+k</sub></i>} or a static warning occurs. 2880 * <i>p<sub>n+k</sub></i>} or a static warning occurs.
2875 * 2881 *
2876 * @param name the name of the requested named parameter 2882 * @param name the name of the requested named parameter
2877 */ 2883 */
2878 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo de.con1('UNDEFINED_NAMED_PARAMETER', 74, "The named parameter '%s' is not define d"); 2884 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo de.con1('UNDEFINED_NAMED_PARAMETER', 75, "The named parameter '%s' is not define d");
2879 2885
2880 /** 2886 /**
2881 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs 2887 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs
2882 * inside a top level or static function (be it function, method, getter, or s etter) or variable 2888 * inside a top level or static function (be it function, method, getter, or s etter) or variable
2883 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope 2889 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope
2884 * enclosing the assignment. 2890 * enclosing the assignment.
2885 * 2891 *
2886 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t he enclosing lexical 2892 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t he enclosing lexical
2887 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp licitly, a setter 2893 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp licitly, a setter
2888 * <i>v=</i>. 2894 * <i>v=</i>.
2889 * 2895 *
2890 * @param setterName the name of the getter 2896 * @param setterName the name of the getter
2891 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for 2897 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for
2892 */ 2898 */
2893 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode.con1(' UNDEFINED_SETTER', 75, "There is no such setter '%s' in '%s'"); 2899 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode.con1(' UNDEFINED_SETTER', 76, "There is no such setter '%s' in '%s'");
2894 2900
2895 /** 2901 /**
2896 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method 2902 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method
2897 * or getter <i>m</i>. 2903 * or getter <i>m</i>.
2898 * 2904 *
2899 * @param methodName the name of the method 2905 * @param methodName the name of the method
2900 * @param enclosingType the name of the enclosing type where the method is bei ng looked for 2906 * @param enclosingType the name of the enclosing type where the method is bei ng looked for
2901 */ 2907 */
2902 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW arningCode.con1('UNDEFINED_STATIC_METHOD_OR_GETTER', 76, "There is no such stati c method '%s' in '%s'"); 2908 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW arningCode.con1('UNDEFINED_STATIC_METHOD_OR_GETTER', 77, "There is no such stati c method '%s' in '%s'");
2903 static final List<StaticWarningCode> values = [ 2909 static final List<StaticWarningCode> values = [
2904 AMBIGUOUS_IMPORT, 2910 AMBIGUOUS_IMPORT,
2905 ARGUMENT_TYPE_NOT_ASSIGNABLE, 2911 ARGUMENT_TYPE_NOT_ASSIGNABLE,
2906 ASSIGNMENT_TO_CONST, 2912 ASSIGNMENT_TO_CONST,
2907 ASSIGNMENT_TO_FINAL, 2913 ASSIGNMENT_TO_FINAL,
2908 ASSIGNMENT_TO_METHOD, 2914 ASSIGNMENT_TO_METHOD,
2909 CASE_BLOCK_NOT_TERMINATED, 2915 CASE_BLOCK_NOT_TERMINATED,
2910 CAST_TO_NON_TYPE, 2916 CAST_TO_NON_TYPE,
2911 COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE, 2917 COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE,
2912 COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE, 2918 COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE,
2913 COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR, 2919 COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR,
2914 COMMENT_REFERENCE_UNDECLARED_IDENTIFIER, 2920 COMMENT_REFERENCE_UNDECLARED_IDENTIFIER,
2915 COMMENT_REFERENCE_URI_NOT_LIBRARY, 2921 COMMENT_REFERENCE_URI_NOT_LIBRARY,
2916 CONCRETE_CLASS_WITH_ABSTRACT_MEMBER, 2922 CONCRETE_CLASS_WITH_ABSTRACT_MEMBER,
2917 CONFLICTING_DART_IMPORT, 2923 CONFLICTING_DART_IMPORT,
2918 CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, 2924 CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER,
2919 CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER, 2925 CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER,
2920 CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, 2926 CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER,
2921 CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER, 2927 CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER,
2922 CONST_WITH_ABSTRACT_CLASS, 2928 CONST_WITH_ABSTRACT_CLASS,
2923 EQUAL_KEYS_IN_MAP, 2929 EQUAL_KEYS_IN_MAP,
2924 EXPORT_DUPLICATED_LIBRARY_NAME, 2930 EXPORT_DUPLICATED_LIBRARY_NAME,
2925 EXTRA_POSITIONAL_ARGUMENTS, 2931 EXTRA_POSITIONAL_ARGUMENTS,
2926 FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION, 2932 FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION,
2927 FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR, 2933 FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR,
2928 FIELD_INITIALIZER_NOT_ASSIGNABLE, 2934 FIELD_INITIALIZER_NOT_ASSIGNABLE,
2929 FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE, 2935 FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE,
2930 FINAL_NOT_INITIALIZED, 2936 FINAL_NOT_INITIALIZED,
2937 FUNCTION_WITHOUT_CALL,
2931 IMPORT_DUPLICATED_LIBRARY_NAME, 2938 IMPORT_DUPLICATED_LIBRARY_NAME,
2932 INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD, 2939 INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD,
2933 INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC, 2940 INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC,
2934 INVALID_GETTER_OVERRIDE_RETURN_TYPE, 2941 INVALID_GETTER_OVERRIDE_RETURN_TYPE,
2935 INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE, 2942 INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE,
2936 INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE, 2943 INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE,
2937 INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE, 2944 INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE,
2938 INVALID_METHOD_OVERRIDE_RETURN_TYPE, 2945 INVALID_METHOD_OVERRIDE_RETURN_TYPE,
2939 INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED, 2946 INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED,
2940 INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL, 2947 INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL,
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
3410 */ 3417 */
3411 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co rrection) : super(name, ordinal) { 3418 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co rrection) : super(name, ordinal) {
3412 this._message = message; 3419 this._message = message;
3413 this.correction6 = correction; 3420 this.correction6 = correction;
3414 } 3421 }
3415 String get correction => correction6; 3422 String get correction => correction6;
3416 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 3423 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
3417 String get message => _message; 3424 String get message => _message;
3418 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 3425 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
3419 } 3426 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/constant.dart ('k') | pkg/analyzer_experimental/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698