| OLD | NEW |
| 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 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1603 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object | 1603 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object |
| 1604 * expression are not subtypes of the bounds of the corresponding formal type
parameters of | 1604 * expression are not subtypes of the bounds of the corresponding formal type
parameters of |
| 1605 * <i>G</i>. | 1605 * <i>G</i>. |
| 1606 * | 1606 * |
| 1607 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if
T is mal-bounded a | 1607 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if
T is mal-bounded a |
| 1608 * dynamic error occurs. | 1608 * dynamic error occurs. |
| 1609 * | 1609 * |
| 1610 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time
constant would raise | 1610 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time
constant would raise |
| 1611 * an exception. | 1611 * an exception. |
| 1612 * | 1612 * |
| 1613 * | |
| 1614 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS | |
| 1615 * @param boundedTypeName the name of the type used in the instance creation t
hat should be | 1613 * @param boundedTypeName the name of the type used in the instance creation t
hat should be |
| 1616 * limited by the bound as specified in the class declaration | 1614 * limited by the bound as specified in the class declaration |
| 1617 * @param boundingTypeName the name of the bounding type | 1615 * @param boundingTypeName the name of the bounding type |
| 1616 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS |
| 1618 */ | 1617 */ |
| 1619 static final CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Comp
ileTimeErrorCode('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 126, "'%s' does not extend
'%s'"); | 1618 static final CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Comp
ileTimeErrorCode('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 126, "'%s' does not extend
'%s'"); |
| 1620 | 1619 |
| 1621 /** | 1620 /** |
| 1622 * 15.3.1 Typedef: It is a compile-time error if a typedef refers to itself vi
a a chain of | 1621 * 15.3.1 Typedef: It is a compile-time error if a typedef refers to itself vi
a a chain of |
| 1623 * references that does not include a class declaration. | 1622 * references that does not include a class declaration. |
| 1624 */ | 1623 */ |
| 1625 static final CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = new Com
pileTimeErrorCode('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 127, "Type alias cannot
reference itself directly or via other typedefs"); | 1624 static final CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = new Com
pileTimeErrorCode('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 127, "Type alias cannot
reference itself directly or via other typedefs"); |
| 1626 | 1625 |
| 1627 /** | 1626 /** |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 */ | 2368 */ |
| 2370 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa
rningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 57, "Type '%s' of the switch expre
ssion is not assignable to the type '%s' of case expressions"); | 2369 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa
rningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 57, "Type '%s' of the switch expre
ssion is not assignable to the type '%s' of case expressions"); |
| 2371 | 2370 |
| 2372 /** | 2371 /** |
| 2373 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
available in the | 2372 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
available in the |
| 2374 * current lexical scope. | 2373 * current lexical scope. |
| 2375 */ | 2374 */ |
| 2376 static final StaticWarningCode TYPE_TEST_NON_TYPE = new StaticWarningCode('TYP
E_TEST_NON_TYPE', 58, "The name '%s' is not a type and cannot be used in an 'is'
expression"); | 2375 static final StaticWarningCode TYPE_TEST_NON_TYPE = new StaticWarningCode('TYP
E_TEST_NON_TYPE', 58, "The name '%s' is not a type and cannot be used in an 'is'
expression"); |
| 2377 | 2376 |
| 2378 /** | 2377 /** |
| 2378 * 10 Generics: However, a type parameter is considered to be a malformed type
when referenced by |
| 2379 * a static member. |
| 2380 * |
| 2381 * 15.1 Static Types: Any use of a malformed type gives rise to a static warni
ng. A malformed type |
| 2382 * is then interpreted as dynamic by the static type checker and the runtime. |
| 2383 */ |
| 2384 static final StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = new Stati
cWarningCode('TYPE_PARAMETER_REFERENCED_BY_STATIC', 59, "Static members cannot r
eference type parameters"); |
| 2385 |
| 2386 /** |
| 2379 * 15.1 Static Types: A type <i>T</i> is malformed iff: * <i>T</i> has the for
m <i>id</i> or the | 2387 * 15.1 Static Types: A type <i>T</i> is malformed iff: * <i>T</i> has the for
m <i>id</i> or the |
| 2380 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</
i> (respectively | 2388 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</
i> (respectively |
| 2381 * <i>prefix.id</i>) does not denote a type. * <i>T</i> denotes a type variabl
e in the | 2389 * <i>prefix.id</i>) does not denote a type. * <i>T</i> denotes a type variabl
e in the |
| 2382 * enclosing lexical scope, but occurs in the signature or body of a static me
mber. * | 2390 * enclosing lexical scope, but occurs in the signature or body of a static me
mber. * |
| 2383 * <i>T</i> is a parameterized type of the form <i>G<S<sub>1</sub>, .., S<s
ub>n</sub>></i>, | 2391 * <i>T</i> is a parameterized type of the form <i>G<S<sub>1</sub>, .., S<s
ub>n</sub>></i>, |
| 2384 * and <i>G</i> is malformed. | 2392 * and <i>G</i> is malformed. |
| 2385 * | 2393 * |
| 2386 * Any use of a malformed type gives rise to a static warning. | 2394 * Any use of a malformed type gives rise to a static warning. |
| 2387 */ | 2395 */ |
| 2388 static final StaticWarningCode TYPE_VARIABLE_IN_STATIC_SCOPE = new StaticWarni
ngCode('TYPE_VARIABLE_IN_STATIC_SCOPE', 59, ""); | 2396 static final StaticWarningCode TYPE_VARIABLE_IN_STATIC_SCOPE = new StaticWarni
ngCode('TYPE_VARIABLE_IN_STATIC_SCOPE', 60, ""); |
| 2389 | 2397 |
| 2390 /** | 2398 /** |
| 2391 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form | 2399 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form |
| 2392 * <i>C.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</
sub>, … | 2400 * <i>C.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</
sub>, … |
| 2393 * 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 | 2401 * 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 |
| 2394 * class in the current scope. | 2402 * class in the current scope. |
| 2395 * | 2403 * |
| 2396 * @param undefinedClassName the name of the undefined class | 2404 * @param undefinedClassName the name of the undefined class |
| 2397 */ | 2405 */ |
| 2398 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI
NED_CLASS', 60, "Undefined class '%s'"); | 2406 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI
NED_CLASS', 61, "Undefined class '%s'"); |
| 2399 | 2407 |
| 2400 /** | 2408 /** |
| 2401 * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool". | 2409 * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool". |
| 2402 */ | 2410 */ |
| 2403 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode
('UNDEFINED_CLASS_BOOLEAN', 61, "Undefined class 'boolean'; did you mean 'bool'?
"); | 2411 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode
('UNDEFINED_CLASS_BOOLEAN', 62, "Undefined class 'boolean'; did you mean 'bool'?
"); |
| 2404 | 2412 |
| 2405 /** | 2413 /** |
| 2406 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</
i> in the enclosing | 2414 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</
i> in the enclosing |
| 2407 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e
xplicitly, a getter | 2415 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e
xplicitly, a getter |
| 2408 * named <i>m</i>. | 2416 * named <i>m</i>. |
| 2409 * | 2417 * |
| 2410 * @param getterName the name of the getter | 2418 * @param getterName the name of the getter |
| 2411 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for | 2419 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for |
| 2412 */ | 2420 */ |
| 2413 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF
INED_GETTER', 62, "There is no such getter '%s' in '%s'"); | 2421 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF
INED_GETTER', 63, "There is no such getter '%s' in '%s'"); |
| 2414 | 2422 |
| 2415 /** | 2423 /** |
| 2416 * 12.30 Identifier Reference: It is as static warning if an identifier expres
sion of the form | 2424 * 12.30 Identifier Reference: It is as static warning if an identifier expres
sion of the form |
| 2417 * <i>id</i> occurs inside a top level or static function (be it function, met
hod, getter, or | 2425 * <i>id</i> occurs inside a top level or static function (be it function, met
hod, getter, or |
| 2418 * setter) or variable initializer and there is no declaration <i>d</i> with n
ame <i>id</i> in the | 2426 * setter) or variable initializer and there is no declaration <i>d</i> with n
ame <i>id</i> in the |
| 2419 * lexical scope enclosing the expression. | 2427 * lexical scope enclosing the expression. |
| 2420 */ | 2428 */ |
| 2421 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U
NDEFINED_IDENTIFIER', 63, "Undefined name '%s'"); | 2429 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U
NDEFINED_IDENTIFIER', 64, "Undefined name '%s'"); |
| 2422 | 2430 |
| 2423 /** | 2431 /** |
| 2424 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, | 2432 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, |
| 2425 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... | 2433 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... |
| 2426 * <i>p<sub>n+k</sub></i>} or a static warning occurs. | 2434 * <i>p<sub>n+k</sub></i>} or a static warning occurs. |
| 2427 * | 2435 * |
| 2428 * @param name the name of the requested named parameter | 2436 * @param name the name of the requested named parameter |
| 2429 */ | 2437 */ |
| 2430 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo
de('UNDEFINED_NAMED_PARAMETER', 64, "The named parameter '%s' is not defined"); | 2438 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo
de('UNDEFINED_NAMED_PARAMETER', 65, "The named parameter '%s' is not defined"); |
| 2431 | 2439 |
| 2432 /** | 2440 /** |
| 2433 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v
= e</i> occurs | 2441 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v
= e</i> occurs |
| 2434 * inside a top level or static function (be it function, method, getter, or s
etter) or variable | 2442 * inside a top level or static function (be it function, method, getter, or s
etter) or variable |
| 2435 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the
lexical scope | 2443 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the
lexical scope |
| 2436 * enclosing the assignment. | 2444 * enclosing the assignment. |
| 2437 * | 2445 * |
| 2438 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t
he enclosing lexical | 2446 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t
he enclosing lexical |
| 2439 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp
licitly, a setter | 2447 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp
licitly, a setter |
| 2440 * <i>v=</i>. | 2448 * <i>v=</i>. |
| 2441 * | 2449 * |
| 2442 * @param setterName the name of the getter | 2450 * @param setterName the name of the getter |
| 2443 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for | 2451 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for |
| 2444 */ | 2452 */ |
| 2445 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF
INED_SETTER', 65, "There is no such setter '%s' in '%s'"); | 2453 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF
INED_SETTER', 66, "There is no such setter '%s' in '%s'"); |
| 2446 | 2454 |
| 2447 /** | 2455 /** |
| 2448 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl
are a static method | 2456 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl
are a static method |
| 2449 * or getter <i>m</i>. | 2457 * or getter <i>m</i>. |
| 2450 * | 2458 * |
| 2451 * @param methodName the name of the method | 2459 * @param methodName the name of the method |
| 2452 * @param enclosingType the name of the enclosing type where the method is bei
ng looked for | 2460 * @param enclosingType the name of the enclosing type where the method is bei
ng looked for |
| 2453 */ | 2461 */ |
| 2454 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW
arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 66, "There is no such static met
hod '%s' in '%s'"); | 2462 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW
arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 67, "There is no such static met
hod '%s' in '%s'"); |
| 2455 static final List<StaticWarningCode> values = [AMBIGUOUS_IMPORT, ARGUMENT_TYPE
_NOT_ASSIGNABLE, ASSIGNMENT_TO_FINAL, CASE_BLOCK_NOT_TERMINATED, CAST_TO_NON_TYP
E, COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE, COMMENT_REFERENCE_IDENTIFIER_NOT_V
ISIBLE, COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR, COMMENT_REFERENCE_UNDECLARED_I
DENTIFIER, COMMENT_REFERENCE_URI_NOT_LIBRARY, CONCRETE_CLASS_WITH_ABSTRACT_MEMBE
R, CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, CONFLICTING_INSTANCE_SETTE
R_AND_SUPERCLASS_MEMBER, CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, CONFLICT
ING_STATIC_SETTER_AND_INSTANCE_MEMBER, CONST_WITH_ABSTRACT_CLASS, EQUAL_KEYS_IN_
MAP, EXPORT_DUPLICATED_LIBRARY_NAME, EXTRA_POSITIONAL_ARGUMENTS, FIELD_INITIALIZ
ER_NOT_ASSIGNABLE, FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE, FINAL_NOT_INITIALIZ
ED, IMPORT_DUPLICATED_LIBRARY_NAME, INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_M
ETHOD, INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC, INVALID_FACTORY_NAM
E, INVALID_GETTER_OVERRIDE_RETURN_TYPE, INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE
, INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE, INVALID_METHOD_OVERRIDE_OPTIONAL_PA
RAM_TYPE, INVALID_METHOD_OVERRIDE_RETURN_TYPE, INVALID_OVERRIDE_DIFFERENT_DEFAUL
T_VALUES_NAMED, INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL, INVALID_SE
TTER_OVERRIDE_NORMAL_PARAM_TYPE, INVOCATION_OF_NON_FUNCTION, MISMATCHED_GETTER_A
ND_SETTER_TYPES, NEW_WITH_ABSTRACT_CLASS, NEW_WITH_NON_TYPE, NEW_WITH_UNDEFINED_
CONSTRUCTOR, NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT, NON_ABSTRACT_CLASS_INHERITS
_ABSTRACT_MEMBER_FIVE_PLUS, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR, NO
N_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE, NON_ABSTRACT_CLASS_INHERITS_ABSTR
ACT_MEMBER_THREE, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO, NON_TYPE_IN_C
ATCH_CLAUSE, NON_VOID_RETURN_FOR_OPERATOR, NON_VOID_RETURN_FOR_SETTER, NOT_A_TYP
E, NOT_ENOUGH_REQUIRED_ARGUMENTS, PART_OF_DIFFERENT_LIBRARY, REDIRECT_TO_INVALID
_FUNCTION_TYPE, REDIRECT_TO_INVALID_RETURN_TYPE, REDIRECT_TO_MISSING_CONSTRUCTOR
, REDIRECT_TO_NON_CLASS, RETURN_WITHOUT_VALUE, STATIC_ACCESS_TO_INSTANCE_MEMBER,
SWITCH_EXPRESSION_NOT_ASSIGNABLE, TYPE_TEST_NON_TYPE, TYPE_VARIABLE_IN_STATIC_S
COPE, UNDEFINED_CLASS, UNDEFINED_CLASS_BOOLEAN, UNDEFINED_GETTER, UNDEFINED_IDEN
TIFIER, UNDEFINED_NAMED_PARAMETER, UNDEFINED_SETTER, UNDEFINED_STATIC_METHOD_OR_
GETTER]; | 2463 static final List<StaticWarningCode> values = [AMBIGUOUS_IMPORT, ARGUMENT_TYPE
_NOT_ASSIGNABLE, ASSIGNMENT_TO_FINAL, CASE_BLOCK_NOT_TERMINATED, CAST_TO_NON_TYP
E, COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE, COMMENT_REFERENCE_IDENTIFIER_NOT_V
ISIBLE, COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR, COMMENT_REFERENCE_UNDECLARED_I
DENTIFIER, COMMENT_REFERENCE_URI_NOT_LIBRARY, CONCRETE_CLASS_WITH_ABSTRACT_MEMBE
R, CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, CONFLICTING_INSTANCE_SETTE
R_AND_SUPERCLASS_MEMBER, CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, CONFLICT
ING_STATIC_SETTER_AND_INSTANCE_MEMBER, CONST_WITH_ABSTRACT_CLASS, EQUAL_KEYS_IN_
MAP, EXPORT_DUPLICATED_LIBRARY_NAME, EXTRA_POSITIONAL_ARGUMENTS, FIELD_INITIALIZ
ER_NOT_ASSIGNABLE, FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE, FINAL_NOT_INITIALIZ
ED, IMPORT_DUPLICATED_LIBRARY_NAME, INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_M
ETHOD, INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC, INVALID_FACTORY_NAM
E, INVALID_GETTER_OVERRIDE_RETURN_TYPE, INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE
, INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE, INVALID_METHOD_OVERRIDE_OPTIONAL_PA
RAM_TYPE, INVALID_METHOD_OVERRIDE_RETURN_TYPE, INVALID_OVERRIDE_DIFFERENT_DEFAUL
T_VALUES_NAMED, INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL, INVALID_SE
TTER_OVERRIDE_NORMAL_PARAM_TYPE, INVOCATION_OF_NON_FUNCTION, MISMATCHED_GETTER_A
ND_SETTER_TYPES, NEW_WITH_ABSTRACT_CLASS, NEW_WITH_NON_TYPE, NEW_WITH_UNDEFINED_
CONSTRUCTOR, NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT, NON_ABSTRACT_CLASS_INHERITS
_ABSTRACT_MEMBER_FIVE_PLUS, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR, NO
N_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE, NON_ABSTRACT_CLASS_INHERITS_ABSTR
ACT_MEMBER_THREE, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO, NON_TYPE_IN_C
ATCH_CLAUSE, NON_VOID_RETURN_FOR_OPERATOR, NON_VOID_RETURN_FOR_SETTER, NOT_A_TYP
E, NOT_ENOUGH_REQUIRED_ARGUMENTS, PART_OF_DIFFERENT_LIBRARY, REDIRECT_TO_INVALID
_FUNCTION_TYPE, REDIRECT_TO_INVALID_RETURN_TYPE, REDIRECT_TO_MISSING_CONSTRUCTOR
, REDIRECT_TO_NON_CLASS, RETURN_WITHOUT_VALUE, STATIC_ACCESS_TO_INSTANCE_MEMBER,
SWITCH_EXPRESSION_NOT_ASSIGNABLE, TYPE_TEST_NON_TYPE, TYPE_PARAMETER_REFERENCED
_BY_STATIC, TYPE_VARIABLE_IN_STATIC_SCOPE, UNDEFINED_CLASS, UNDEFINED_CLASS_BOOL
EAN, UNDEFINED_GETTER, UNDEFINED_IDENTIFIER, UNDEFINED_NAMED_PARAMETER, UNDEFINE
D_SETTER, UNDEFINED_STATIC_METHOD_OR_GETTER]; |
| 2456 | 2464 |
| 2457 /// The name of this enum constant, as declared in the enum declaration. | 2465 /// The name of this enum constant, as declared in the enum declaration. |
| 2458 final String name; | 2466 final String name; |
| 2459 | 2467 |
| 2460 /// The position in the enum declaration. | 2468 /// The position in the enum declaration. |
| 2461 final int ordinal; | 2469 final int ordinal; |
| 2462 | 2470 |
| 2463 /** | 2471 /** |
| 2464 * The message template used to create the message to be displayed for this er
ror. | 2472 * The message template used to create the message to be displayed for this er
ror. |
| 2465 */ | 2473 */ |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2798 StaticTypeWarningCode(this.name, this.ordinal, String message) { | 2806 StaticTypeWarningCode(this.name, this.ordinal, String message) { |
| 2799 this._message = message; | 2807 this._message = message; |
| 2800 } | 2808 } |
| 2801 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; | 2809 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; |
| 2802 String get message => _message; | 2810 String get message => _message; |
| 2803 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; | 2811 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; |
| 2804 int compareTo(StaticTypeWarningCode other) => ordinal - other.ordinal; | 2812 int compareTo(StaticTypeWarningCode other) => ordinal - other.ordinal; |
| 2805 int get hashCode => ordinal; | 2813 int get hashCode => ordinal; |
| 2806 String toString() => name; | 2814 String toString() => name; |
| 2807 } | 2815 } |
| OLD | NEW |