| Index: pkg/analyzer/lib/src/generated/error.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
|
| index 5257ff0b3a895256f0db29b68690380317ec9ad9..79b1bad76bf066baa88196b67d895767b2ae3864 100644
|
| --- a/pkg/analyzer/lib/src/generated/error.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error.dart
|
| @@ -1269,18 +1269,28 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case e<sub>n</sub>:
|
| * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>k</sub></i> are not
|
| * compile-time constants, for all <i>1 <= k <= n</i>.
|
| - *
|
| - * TODO (jwren) For this and all other NON_CONSTANT_* error codes we need a corresponding
|
| - * NON_CONSTANT_*_FROM_DEFERRED_LIBRARY, see NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY or
|
| - * CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY.
|
| */
|
| static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION', 105, "Case expressions must be constant");
|
|
|
| /**
|
| + * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub>11</sub> …
|
| + * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> … label<sub>n1</sub> …
|
| + * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</sub>}</i> or the form
|
| + * <i>switch (e) { label<sub>11</sub> … label<sub>1j1</sub> case e<sub>1</sub>:
|
| + * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case e<sub>n</sub>:
|
| + * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>k</sub></i> are not
|
| + * compile-time constants, for all <i>1 <= k <= n</i>.
|
| + *
|
| + * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
|
| + * deferred prefix.
|
| + */
|
| + static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY', 106, "Constant values from a deferred library cannot be used as a case expression");
|
| +
|
| + /**
|
| * 6.2.2 Optional Formals: It is a compile-time error if the default value of an optional
|
| * parameter is not a compile-time constant.
|
| */
|
| - static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE', 106, "Default values of an optional parameter must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE', 107, "Default values of an optional parameter must be constant");
|
|
|
| /**
|
| * 6.2.2 Optional Formals: It is a compile-time error if the default value of an optional
|
| @@ -1289,38 +1299,77 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
|
| * deferred prefix.
|
| */
|
| - static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY', 107, "Constant values from a deferred library cannot be used as a default parameter value");
|
| + static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY', 108, "Constant values from a deferred library cannot be used as a default parameter value");
|
| +
|
| + /**
|
| + * 12.6 Lists: It is a compile time error if an element of a constant list literal is not a
|
| + * compile-time constant.
|
| + */
|
| + static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT', 109, "'const' lists must have all constant values");
|
|
|
| /**
|
| * 12.6 Lists: It is a compile time error if an element of a constant list literal is not a
|
| * compile-time constant.
|
| + *
|
| + * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
|
| + * deferred prefix.
|
| */
|
| - static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT', 108, "'const' lists must have all constant values");
|
| + static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY', 110, "Constant values from a deferred library cannot be used as values in a 'const' list");
|
|
|
| /**
|
| * 12.7 Maps: It is a compile time error if either a key or a value of an entry in a constant map
|
| * literal is not a compile-time constant.
|
| */
|
| - static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY', 109, "The keys in a map must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY', 111, "The keys in a map must be constant");
|
| +
|
| + /**
|
| + * 12.7 Maps: It is a compile time error if either a key or a value of an entry in a constant map
|
| + * literal is not a compile-time constant.
|
| + *
|
| + * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
|
| + * deferred prefix.
|
| + */
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY', 112, "Constant values from a deferred library cannot be used as keys in a map");
|
|
|
| /**
|
| * 12.7 Maps: It is a compile time error if either a key or a value of an entry in a constant map
|
| * literal is not a compile-time constant.
|
| */
|
| - static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE', 110, "The values in a 'const' map must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE', 113, "The values in a 'const' map must be constant");
|
| +
|
| + /**
|
| + * 12.7 Maps: It is a compile time error if either a key or a value of an entry in a constant map
|
| + * literal is not a compile-time constant.
|
| + *
|
| + * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
|
| + * deferred prefix.
|
| + */
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY', 114, "Constant values from a deferred library cannot be used as values in a 'const' map");
|
|
|
| /**
|
| * 11 Metadata: Metadata consists of a series of annotations, each of which begin with the
|
| * character @, followed by a constant expression that must be either a reference to a
|
| * compile-time constant variable, or a call to a constant constructor.
|
| + *
|
| + * "From deferred library" case is covered by
|
| + * [CompileTimeErrorCode#INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY].
|
| */
|
| - static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', 111, "Annotation creation can use only 'const' constructor");
|
| + static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', 115, "Annotation creation can use only 'const' constructor");
|
|
|
| /**
|
| * 7.6.3 Constant Constructors: Any expression that appears within the initializer list of a
|
| * constant constructor must be a potentially constant expression, or a compile-time error occurs.
|
| */
|
| - static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER', 112, "Initializer expressions in constant constructors must be constants");
|
| + static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER', 116, "Initializer expressions in constant constructors must be constants");
|
| +
|
| + /**
|
| + * 7.6.3 Constant Constructors: Any expression that appears within the initializer list of a
|
| + * constant constructor must be a potentially constant expression, or a compile-time error occurs.
|
| + *
|
| + * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
|
| + * deferred prefix.
|
| + */
|
| + static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFERRED_LIBRARY', 117, "Constant values from a deferred library cannot be used as constant initializers");
|
|
|
| /**
|
| * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i> or if <i>m > n</i>.
|
| @@ -1331,7 +1380,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param requiredCount the expected number of required arguments
|
| * @param argumentCount the actual number of positional arguments given
|
| */
|
| - static const CompileTimeErrorCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const CompileTimeErrorCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 113, "%d required argument(s) expected, but %d found");
|
| + static const CompileTimeErrorCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const CompileTimeErrorCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 118, "%d required argument(s) expected, but %d found");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1339,17 +1388,17 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * a compile-time error if class <i>S</i> does not declare a generative constructor named <i>S</i>
|
| * (respectively <i>S.id</i>)
|
| */
|
| - static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_GENERATIVE_CONSTRUCTOR', 114, "The generative constructor '%s' expected, but factory found");
|
| + static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_GENERATIVE_CONSTRUCTOR', 119, "The generative constructor '%s' expected, but factory found");
|
|
|
| /**
|
| * 7.9 Superclasses: It is a compile-time error to specify an extends clause for class Object.
|
| */
|
| - static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const CompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 115, "");
|
| + static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const CompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 120, "");
|
|
|
| /**
|
| * 7.1.1 Operators: It is a compile-time error to declare an optional parameter in an operator.
|
| */
|
| - static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = const CompileTimeErrorCode.con1('OPTIONAL_PARAMETER_IN_OPERATOR', 116, "Optional parameters are not allowed when defining an operator");
|
| + static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = const CompileTimeErrorCode.con1('OPTIONAL_PARAMETER_IN_OPERATOR', 121, "Optional parameters are not allowed when defining an operator");
|
|
|
| /**
|
| * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part
|
| @@ -1357,25 +1406,25 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param uri the uri pointing to a non-library declaration
|
| */
|
| - static const CompileTimeErrorCode PART_OF_NON_PART = const CompileTimeErrorCode.con1('PART_OF_NON_PART', 117, "The included part '%s' must have a part-of directive");
|
| + static const CompileTimeErrorCode PART_OF_NON_PART = const CompileTimeErrorCode.con1('PART_OF_NON_PART', 122, "The included part '%s' must have a part-of directive");
|
|
|
| /**
|
| * 14.1 Imports: It is a compile-time error if the current library declares a top-level member
|
| * named <i>p</i>.
|
| */
|
| - static const CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = const CompileTimeErrorCode.con1('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 118, "The name '%s' is already used as an import prefix and cannot be used to name a top-level element");
|
| + static const CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = const CompileTimeErrorCode.con1('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 123, "The name '%s' is already used as an import prefix and cannot be used to name a top-level element");
|
|
|
| /**
|
| * 6.2.2 Optional Formals: It is a compile-time error if the name of a named optional parameter
|
| * begins with an '_' character.
|
| */
|
| - static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTimeErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 119, "Named optional parameters cannot start with an underscore");
|
| + static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTimeErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 124, "Named optional parameters cannot start with an underscore");
|
|
|
| /**
|
| * 12.1 Constants: It is a compile-time error if the value of a compile-time constant expression
|
| * depends on itself.
|
| */
|
| - static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = const CompileTimeErrorCode.con1('RECURSIVE_COMPILE_TIME_CONSTANT', 120, "");
|
| + static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = const CompileTimeErrorCode.con1('RECURSIVE_COMPILE_TIME_CONSTANT', 125, "");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
|
| @@ -1386,13 +1435,13 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * https://code.google.com/p/dart/issues/detail?id=954
|
| */
|
| - static const CompileTimeErrorCode RECURSIVE_CONSTRUCTOR_REDIRECT = const CompileTimeErrorCode.con1('RECURSIVE_CONSTRUCTOR_REDIRECT', 121, "Cycle in redirecting generative constructors");
|
| + static const CompileTimeErrorCode RECURSIVE_CONSTRUCTOR_REDIRECT = const CompileTimeErrorCode.con1('RECURSIVE_CONSTRUCTOR_REDIRECT', 126, "Cycle in redirecting generative constructors");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a compile-time error if a redirecting factory constructor redirects to
|
| * itself, either directly or indirectly via a sequence of redirections.
|
| */
|
| - static const CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = const CompileTimeErrorCode.con1('RECURSIVE_FACTORY_REDIRECT', 122, "Cycle in redirecting factory constructors");
|
| + static const CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = const CompileTimeErrorCode.con1('RECURSIVE_FACTORY_REDIRECT', 127, "Cycle in redirecting factory constructors");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1405,7 +1454,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param className the name of the class that implements itself recursively
|
| * @param strImplementsPath a string representation of the implements loop
|
| */
|
| - static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE', 123, "'%s' cannot be a superinterface of itself: %s");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE', 128, "'%s' cannot be a superinterface of itself: %s");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1417,7 +1466,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param className the name of the class that implements itself recursively
|
| */
|
| - static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS', 124, "'%s' cannot extend itself");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS', 129, "'%s' cannot extend itself");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1429,49 +1478,61 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param className the name of the class that implements itself recursively
|
| */
|
| - static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS', 125, "'%s' cannot implement itself");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS', 130, "'%s' cannot implement itself");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with the const modifier but
|
| * <i>k'</i> is not a constant constructor.
|
| */
|
| - static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 126, "The constructor '%s' could not be found in '%s'");
|
| + static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 131, "The constructor '%s' could not be found in '%s'");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with the const modifier but
|
| * <i>k'</i> is not a constant constructor.
|
| */
|
| - static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErrorCode.con1('REDIRECT_TO_NON_CLASS', 127, "The name '%s' is not a type and cannot be used in a redirected constructor");
|
| + static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErrorCode.con1('REDIRECT_TO_NON_CLASS', 132, "The name '%s' is not a type and cannot be used in a redirected constructor");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with the const modifier but
|
| * <i>k'</i> is not a constant constructor.
|
| */
|
| - static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 128, "Constant factory constructor cannot delegate to a non-constant constructor");
|
| + static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 133, "Constant factory constructor cannot delegate to a non-constant constructor");
|
| +
|
| + /**
|
| + * 7.6.1 Generative constructors: A generative constructor may be <i>redirecting</i>, in which
|
| + * case its only action is to invoke another generative constructor.
|
| + */
|
| + static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', 134, "The constructor '%s' could not be found in '%s'");
|
| +
|
| + /**
|
| + * 7.6.1 Generative constructors: A generative constructor may be <i>redirecting</i>, in which
|
| + * case its only action is to invoke another generative constructor.
|
| + */
|
| + static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR', 135, "Generative constructor cannot redirect to a factory constructor");
|
|
|
| /**
|
| * 5 Variables: A local variable may only be referenced at a source code location that is after
|
| * its initializer, if any, is complete, or a compile-time error occurs.
|
| */
|
| - static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const CompileTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 129, "Local variables cannot be referenced before they are declared");
|
| + static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const CompileTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 136, "Local variables cannot be referenced before they are declared");
|
|
|
| /**
|
| * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i>rethrow;</i> is not
|
| * enclosed within a on-catch clause.
|
| */
|
| - static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErrorCode.con1('RETHROW_OUTSIDE_CATCH', 130, "rethrow must be inside of a catch clause");
|
| + static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErrorCode.con1('RETHROW_OUTSIDE_CATCH', 137, "rethrow must be inside of a catch clause");
|
|
|
| /**
|
| * 13.12 Return: It is a compile-time error if a return statement of the form <i>return e;</i>
|
| * appears in a generative constructor.
|
| */
|
| - static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 131, "Constructors cannot return a value");
|
| + static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 138, "Constructors cannot return a value");
|
|
|
| /**
|
| * 14.1 Imports: It is a compile-time error if a prefix used in a deferred import is used in
|
| * another import clause.
|
| */
|
| - static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeErrorCode.con1('SHARED_DEFERRED_PREFIX', 132, "The prefix of a deferred import cannot be used in other import directives");
|
| + static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeErrorCode.con1('SHARED_DEFERRED_PREFIX', 139, "The prefix of a deferred import cannot be used in other import directives");
|
|
|
| /**
|
| * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form
|
| @@ -1481,19 +1542,19 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * initializer list, in class Object, in a factory constructor, or in a static method or variable
|
| * initializer.
|
| */
|
| - static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTimeErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 133, "Invalid context for 'super' invocation");
|
| + static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTimeErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 140, "Invalid context for 'super' invocation");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
|
| * only action is to invoke another generative constructor.
|
| */
|
| - static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const CompileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 134, "The redirecting constructor cannot have a 'super' initializer");
|
| + static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const CompileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 141, "The redirecting constructor cannot have a 'super' initializer");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
|
| * error if a generative constructor of class Object includes a superinitializer.
|
| */
|
| - static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileTimeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 135, "");
|
| + static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileTimeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 142, "");
|
|
|
| /**
|
| * 12.11 Instance Creation: It is a static type warning if any of the type arguments to a
|
| @@ -1512,19 +1573,19 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param boundingTypeName the name of the bounding type
|
| * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS
|
| */
|
| - static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const CompileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 136, "'%s' does not extend '%s'");
|
| + static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const CompileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 143, "'%s' does not extend '%s'");
|
|
|
| /**
|
| * 15.3.1 Typedef: Any self reference, either directly, or recursively via another typedef, is a
|
| * compile time error.
|
| */
|
| - static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const CompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 137, "Type alias cannot reference itself directly or recursively via another typedef");
|
| + static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const CompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 144, "Type alias cannot reference itself directly or recursively via another typedef");
|
|
|
| /**
|
| * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class accessible in the current
|
| * scope, optionally followed by type arguments.
|
| */
|
| - static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode.con1('UNDEFINED_CLASS', 138, "Undefined class '%s'");
|
| + static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode.con1('UNDEFINED_CLASS', 145, "Undefined class '%s'");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1532,7 +1593,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * a compile-time error if class <i>S</i> does not declare a generative constructor named <i>S</i>
|
| * (respectively <i>S.id</i>)
|
| */
|
| - static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 139, "The class '%s' does not have a generative constructor '%s'");
|
| + static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 146, "The class '%s' does not have a generative constructor '%s'");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1540,7 +1601,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * a compile-time error if class <i>S</i> does not declare a generative constructor named <i>S</i>
|
| * (respectively <i>S.id</i>)
|
| */
|
| - static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT', 140, "The class '%s' does not have a default generative constructor");
|
| + static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT', 147, "The class '%s' does not have a default generative constructor");
|
|
|
| /**
|
| * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
|
| @@ -1552,7 +1613,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param name the name of the requested named parameter
|
| */
|
| - static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTimeErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 141, "The named parameter '%s' is not defined");
|
| + static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTimeErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 148, "The named parameter '%s' is not defined");
|
|
|
| /**
|
| * 14.2 Exports: It is a compile-time error if the compilation unit found at the specified URI is
|
| @@ -1567,7 +1628,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param uri the URI pointing to a non-existent file
|
| * @see #INVALID_URI
|
| */
|
| - static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorCode.con1('URI_DOES_NOT_EXIST', 142, "Target of URI does not exist: '%s'");
|
| + static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorCode.con1('URI_DOES_NOT_EXIST', 149, "Target of URI does not exist: '%s'");
|
|
|
| /**
|
| * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if
|
| @@ -1579,7 +1640,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that describes a URI is
|
| * not a compile-time constant, or if <i>x</i> involves string interpolation.
|
| */
|
| - static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeErrorCode.con1('URI_WITH_INTERPOLATION', 143, "URIs cannot use string interpolation");
|
| + static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeErrorCode.con1('URI_WITH_INTERPOLATION', 150, "URIs cannot use string interpolation");
|
|
|
| /**
|
| * 7.1.1 Operators: It is a compile-time error if the arity of the user-declared operator []= is
|
| @@ -1592,7 +1653,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param expectedNumberOfParameters the number of parameters expected
|
| * @param actualNumberOfParameters the number of parameters found in the operator declaration
|
| */
|
| - static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 144, "Operator '%s' should declare exactly %d parameter(s), but %d found");
|
| + static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 151, "Operator '%s' should declare exactly %d parameter(s), but %d found");
|
|
|
| /**
|
| * 7.1.1 Operators: It is a compile time error if the arity of the user-declared operator - is not
|
| @@ -1600,13 +1661,13 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param actualNumberOfParameters the number of parameters found in the operator declaration
|
| */
|
| - static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS', 145, "Operator '-' should declare 0 or 1 parameter, but %d found");
|
| + static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS', 152, "Operator '-' should declare 0 or 1 parameter, but %d found");
|
|
|
| /**
|
| * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include
|
| * exactly one required formal parameter <i>p</i>.
|
| */
|
| - static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 146, "Setters should declare exactly one required parameter");
|
| + static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 153, "Setters should declare exactly one required parameter");
|
|
|
| static const List<CompileTimeErrorCode> values = const [
|
| AMBIGUOUS_EXPORT,
|
| @@ -1715,13 +1776,18 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT,
|
| NON_CONST_MAP_AS_EXPRESSION_STATEMENT,
|
| NON_CONSTANT_CASE_EXPRESSION,
|
| + NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY,
|
| NON_CONSTANT_DEFAULT_VALUE,
|
| NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY,
|
| NON_CONSTANT_LIST_ELEMENT,
|
| + NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY,
|
| NON_CONSTANT_MAP_KEY,
|
| + NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY,
|
| NON_CONSTANT_MAP_VALUE,
|
| + NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY,
|
| NON_CONSTANT_ANNOTATION_CONSTRUCTOR,
|
| NON_CONSTANT_VALUE_IN_INITIALIZER,
|
| + NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFERRED_LIBRARY,
|
| NOT_ENOUGH_REQUIRED_ARGUMENTS,
|
| NON_GENERATIVE_CONSTRUCTOR,
|
| OBJECT_CANNOT_EXTEND_ANOTHER_CLASS,
|
| @@ -1738,6 +1804,8 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| REDIRECT_TO_MISSING_CONSTRUCTOR,
|
| REDIRECT_TO_NON_CLASS,
|
| REDIRECT_TO_NON_CONST_CONSTRUCTOR,
|
| + REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR,
|
| + REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR,
|
| REFERENCED_BEFORE_DECLARATION,
|
| RETHROW_OUTSIDE_CATCH,
|
| RETURN_IN_GENERATIVE_CONSTRUCTOR,
|
| @@ -2937,28 +3005,36 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| static const StaticWarningCode ASSIGNMENT_TO_FINAL = const StaticWarningCode.con1('ASSIGNMENT_TO_FINAL', 3, "'%s' cannot be used as a setter, it is final");
|
|
|
| /**
|
| + * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs
|
| + * inside a top level or static function (be it function, method, getter, or setter) or variable
|
| + * initializer and there is neither a local variable declaration with name <i>v</i> nor setter
|
| + * declaration with name <i>v=</i> in the lexical scope enclosing the assignment.
|
| + */
|
| + static const StaticWarningCode ASSIGNMENT_TO_FUNCTION = const StaticWarningCode.con1('ASSIGNMENT_TO_FUNCTION', 4, "Functions cannot be assigned a value");
|
| +
|
| + /**
|
| * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. It is a static type
|
| - * warning if <i>T</i> does not have an accessible instance setter named <i>v =</i>.
|
| + * warning if <i>T</i> does not have an accessible instance setter named <i>v=</i>.
|
| */
|
| - static const StaticWarningCode ASSIGNMENT_TO_METHOD = const StaticWarningCode.con1('ASSIGNMENT_TO_METHOD', 4, "Methods cannot be assigned a value");
|
| + static const StaticWarningCode ASSIGNMENT_TO_METHOD = const StaticWarningCode.con1('ASSIGNMENT_TO_METHOD', 5, "Methods cannot be assigned a value");
|
|
|
| /**
|
| * 13.9 Switch: It is a static warning if the last statement of the statement sequence
|
| * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement.
|
| */
|
| - static const StaticWarningCode CASE_BLOCK_NOT_TERMINATED = const StaticWarningCode.con1('CASE_BLOCK_NOT_TERMINATED', 5, "The last statement of the 'case' should be 'break', 'continue', 'return' or 'throw'");
|
| + static const StaticWarningCode CASE_BLOCK_NOT_TERMINATED = const StaticWarningCode.con1('CASE_BLOCK_NOT_TERMINATED', 6, "The last statement of the 'case' should be 'break', 'continue', 'return' or 'throw'");
|
|
|
| /**
|
| * 12.32 Type Cast: It is a static warning if <i>T</i> does not denote a type available in the
|
| * current lexical scope.
|
| */
|
| - static const StaticWarningCode CAST_TO_NON_TYPE = const StaticWarningCode.con1('CAST_TO_NON_TYPE', 6, "The name '%s' is not a type and cannot be used in an 'as' expression");
|
| + static const StaticWarningCode CAST_TO_NON_TYPE = const StaticWarningCode.con1('CAST_TO_NON_TYPE', 7, "The name '%s' is not a type and cannot be used in an 'as' expression");
|
|
|
| /**
|
| * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or
|
| * inherited in a concrete class.
|
| */
|
| - static const StaticWarningCode CONCRETE_CLASS_WITH_ABSTRACT_MEMBER = const StaticWarningCode.con1('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', 7, "'%s' must have a method body because '%s' is not abstract");
|
| + static const StaticWarningCode CONCRETE_CLASS_WITH_ABSTRACT_MEMBER = const StaticWarningCode.con1('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', 8, "'%s' must have a method body because '%s' is not abstract");
|
|
|
| /**
|
| * 14.1 Imports: If a name <i>N</i> is referenced by a library <i>L</i> and <i>N</i> would be
|
| @@ -2971,7 +3047,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param sdkLibraryName the name of the dart: library that the element is found
|
| * @param otherLibraryName the name of the non-dart: library that the element is found
|
| */
|
| - static const StaticWarningCode CONFLICTING_DART_IMPORT = const StaticWarningCode.con1('CONFLICTING_DART_IMPORT', 8, "Element '%s' from SDK library '%s' is implicitly hidden by '%s'");
|
| + static const StaticWarningCode CONFLICTING_DART_IMPORT = const StaticWarningCode.con1('CONFLICTING_DART_IMPORT', 9, "Element '%s' from SDK library '%s' is implicitly hidden by '%s'");
|
|
|
| /**
|
| * 7.2 Getters: It is a static warning if a class <i>C</i> declares an instance getter named
|
| @@ -2980,19 +3056,19 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param superName the name of the super class declaring a static member
|
| */
|
| - static const StaticWarningCode CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER', 9, "Superclass '%s' declares static member with the same name");
|
| + static const StaticWarningCode CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER', 10, "Superclass '%s' declares static member with the same name");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares an instance method
|
| * named <i>n</i> and has a setter named <i>n=</i>.
|
| */
|
| - static const StaticWarningCode CONFLICTING_INSTANCE_METHOD_SETTER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_METHOD_SETTER', 10, "Class '%s' declares instance method '%s', but also has a setter with the same name from '%s'");
|
| + static const StaticWarningCode CONFLICTING_INSTANCE_METHOD_SETTER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_METHOD_SETTER', 11, "Class '%s' declares instance method '%s', but also has a setter with the same name from '%s'");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares an instance method
|
| * named <i>n</i> and has a setter named <i>n=</i>.
|
| */
|
| - static const StaticWarningCode CONFLICTING_INSTANCE_METHOD_SETTER2 = const StaticWarningCode.con1('CONFLICTING_INSTANCE_METHOD_SETTER2', 11, "Class '%s' declares the setter '%s', but also has an instance method in the same class");
|
| + static const StaticWarningCode CONFLICTING_INSTANCE_METHOD_SETTER2 = const StaticWarningCode.con1('CONFLICTING_INSTANCE_METHOD_SETTER2', 12, "Class '%s' declares the setter '%s', but also has an instance method in the same class");
|
|
|
| /**
|
| * 7.3 Setters: It is a static warning if a class <i>C</i> declares an instance setter named
|
| @@ -3001,31 +3077,31 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param superName the name of the super class declaring a static member
|
| */
|
| - static const StaticWarningCode CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER', 12, "Superclass '%s' declares static member with the same name");
|
| + static const StaticWarningCode CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER', 13, "Superclass '%s' declares static member with the same name");
|
|
|
| /**
|
| * 7.2 Getters: It is a static warning if a class declares a static getter named <i>v</i> and also
|
| * has a non-static setter named <i>v=</i>.
|
| */
|
| - static const StaticWarningCode CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER = const StaticWarningCode.con1('CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER', 13, "Class '%s' declares non-static setter with the same name");
|
| + static const StaticWarningCode CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER = const StaticWarningCode.con1('CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER', 14, "Class '%s' declares non-static setter with the same name");
|
|
|
| /**
|
| * 7.3 Setters: It is a static warning if a class declares a static setter named <i>v=</i> and
|
| * also has a non-static member named <i>v</i>.
|
| */
|
| - static const StaticWarningCode CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER = const StaticWarningCode.con1('CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER', 14, "Class '%s' declares non-static member with the same name");
|
| + static const StaticWarningCode CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER = const StaticWarningCode.con1('CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER', 15, "Class '%s' declares non-static member with the same name");
|
|
|
| /**
|
| * 12.11.2 Const: Given an instance creation expression of the form <i>const q(a<sub>1</sub>,
|
| * … a<sub>n</sub>)</i> it is a static warning if <i>q</i> is the constructor of an
|
| * abstract class but <i>q</i> is not a factory constructor.
|
| */
|
| - static const StaticWarningCode CONST_WITH_ABSTRACT_CLASS = const StaticWarningCode.con1('CONST_WITH_ABSTRACT_CLASS', 15, "Abstract classes cannot be created with a 'const' expression");
|
| + static const StaticWarningCode CONST_WITH_ABSTRACT_CLASS = const StaticWarningCode.con1('CONST_WITH_ABSTRACT_CLASS', 16, "Abstract classes cannot be created with a 'const' expression");
|
|
|
| /**
|
| * 12.7 Maps: It is a static warning if the values of any two keys in a map literal are equal.
|
| */
|
| - static const StaticWarningCode EQUAL_KEYS_IN_MAP = const StaticWarningCode.con1('EQUAL_KEYS_IN_MAP', 16, "Keys in a map cannot be equal");
|
| + static const StaticWarningCode EQUAL_KEYS_IN_MAP = const StaticWarningCode.con1('EQUAL_KEYS_IN_MAP', 17, "Keys in a map cannot be equal");
|
|
|
| /**
|
| * 14.2 Exports: It is a static warning to export two different libraries with the same name.
|
| @@ -3034,7 +3110,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param uri2 the uri pointing to a second library
|
| * @param name the shared name of the exported libraries
|
| */
|
| - static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAME = const StaticWarningCode.con1('EXPORT_DUPLICATED_LIBRARY_NAME', 17, "The exported libraries '%s' and '%s' should not have the same name '%s'");
|
| + static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAME = const StaticWarningCode.con1('EXPORT_DUPLICATED_LIBRARY_NAME', 18, "The exported libraries '%s' and '%s' should not have the same name '%s'");
|
|
|
| /**
|
| * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i> or if <i>m >
|
| @@ -3044,13 +3120,13 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param argumentCount the actual number of positional arguments given
|
| * @see #NOT_ENOUGH_REQUIRED_ARGUMENTS
|
| */
|
| - static const StaticWarningCode EXTRA_POSITIONAL_ARGUMENTS = const StaticWarningCode.con1('EXTRA_POSITIONAL_ARGUMENTS', 18, "%d positional arguments expected, but %d found");
|
| + static const StaticWarningCode EXTRA_POSITIONAL_ARGUMENTS = const StaticWarningCode.con1('EXTRA_POSITIONAL_ARGUMENTS', 19, "%d positional arguments expected, but %d found");
|
|
|
| /**
|
| * 5. Variables: It is a static warning if a final instance variable that has been initialized at
|
| * its point of declaration is also initialized in a constructor.
|
| */
|
| - static const StaticWarningCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION = const StaticWarningCode.con1('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION', 19, "Values cannot be set in the constructor if they are final, and have already been set");
|
| + static const StaticWarningCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION = const StaticWarningCode.con1('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION', 20, "Values cannot be set in the constructor if they are final, and have already been set");
|
|
|
| /**
|
| * 5. Variables: It is a static warning if a final instance variable that has been initialized at
|
| @@ -3058,7 +3134,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param name the name of the field in question
|
| */
|
| - static const StaticWarningCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR = const StaticWarningCode.con1('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR', 20, "'%s' is final and was given a value when it was declared, so it cannot be set to a new value");
|
| + static const StaticWarningCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR = const StaticWarningCode.con1('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR', 21, "'%s' is final and was given a value when it was declared, so it cannot be set to a new value");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Execution of an initializer of the form <b>this</b>.<i>v</i> =
|
| @@ -3075,7 +3151,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param initializerType the name of the type of the initializer expression
|
| * @param fieldType the name of the type of the field
|
| */
|
| - static const StaticWarningCode FIELD_INITIALIZER_NOT_ASSIGNABLE = const StaticWarningCode.con1('FIELD_INITIALIZER_NOT_ASSIGNABLE', 21, "The initializer type '%s' cannot be assigned to the field type '%s'");
|
| + static const StaticWarningCode FIELD_INITIALIZER_NOT_ASSIGNABLE = const StaticWarningCode.con1('FIELD_INITIALIZER_NOT_ASSIGNABLE', 22, "The initializer type '%s' cannot be assigned to the field type '%s'");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.id</i>. It is a
|
| @@ -3084,7 +3160,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param parameterType the name of the type of the field formal parameter
|
| * @param fieldType the name of the type of the field
|
| */
|
| - static const StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE = const StaticWarningCode.con1('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 22, "The parameter type '%s' is incompatable with the field type '%s'");
|
| + static const StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE = const StaticWarningCode.con1('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 23, "The parameter type '%s' is incompatable with the field type '%s'");
|
|
|
| /**
|
| * 5 Variables: It is a static warning if a library, static or local variable <i>v</i> is final
|
| @@ -3099,13 +3175,13 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param name the name of the uninitialized final variable
|
| */
|
| - static const StaticWarningCode FINAL_NOT_INITIALIZED = const StaticWarningCode.con1('FINAL_NOT_INITIALIZED', 23, "The final variable '%s' must be initialized");
|
| + static const StaticWarningCode FINAL_NOT_INITIALIZED = const StaticWarningCode.con1('FINAL_NOT_INITIALIZED', 24, "The final variable '%s' must be initialized");
|
|
|
| /**
|
| * 15.5 Function Types: It is a static warning if a concrete class implements Function and does
|
| * not have a concrete method named call().
|
| */
|
| - static const StaticWarningCode FUNCTION_WITHOUT_CALL = const StaticWarningCode.con1('FUNCTION_WITHOUT_CALL', 24, "Concrete classes that implement Function must implement the method call()");
|
| + static const StaticWarningCode FUNCTION_WITHOUT_CALL = const StaticWarningCode.con1('FUNCTION_WITHOUT_CALL', 25, "Concrete classes that implement Function must implement the method call()");
|
|
|
| /**
|
| * 14.1 Imports: It is a static warning to import two different libraries with the same name.
|
| @@ -3114,7 +3190,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param uri2 the uri pointing to a second library
|
| * @param name the shared name of the imported libraries
|
| */
|
| - static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = const StaticWarningCode.con1('IMPORT_DUPLICATED_LIBRARY_NAME', 25, "The imported libraries '%s' and '%s' should not have the same name '%s'");
|
| + static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = const StaticWarningCode.con1('IMPORT_DUPLICATED_LIBRARY_NAME', 26, "The imported libraries '%s' and '%s' should not have the same name '%s'");
|
|
|
| /**
|
| * 14.1 Imports: It is a static warning if the specified URI of a deferred import does not refer
|
| @@ -3123,7 +3199,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param uri the uri pointing to a non-library declaration
|
| * @see CompileTimeErrorCode#IMPORT_OF_NON_LIBRARY
|
| */
|
| - static const StaticWarningCode IMPORT_OF_NON_LIBRARY = const StaticWarningCode.con1('IMPORT_OF_NON_LIBRARY', 26, "The imported library '%s' must not have a part-of directive");
|
| + static const StaticWarningCode IMPORT_OF_NON_LIBRARY = const StaticWarningCode.con1('IMPORT_OF_NON_LIBRARY', 27, "The imported library '%s' must not have a part-of directive");
|
|
|
| /**
|
| * 8.1.1 Inheritance and Overriding: However, if the above rules would cause multiple members
|
| @@ -3134,7 +3210,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * If some but not all of the <i>m<sub>i</sub>, 1 <= i <= k</i> are getters none of the
|
| * <i>m<sub>i</sub></i> are inherited, and a static warning is issued.
|
| */
|
| - static const StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD = const StaticWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD', 27, "'%s' is inherited as a getter and also a method");
|
| + static const StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD = const StaticWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD', 28, "'%s' is inherited as a getter and also a method");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares an instance method
|
| @@ -3144,7 +3220,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param memberName the name of the member with the name conflict
|
| * @param superclassName the name of the enclosing class that has the static member
|
| */
|
| - static const StaticWarningCode INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC = const StaticWarningCode.con1('INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC', 28, "'%s' collides with a static member in the superclass '%s'");
|
| + static const StaticWarningCode INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC = const StaticWarningCode.con1('INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC', 29, "'%s' collides with a static member in the superclass '%s'");
|
|
|
| /**
|
| * 7.2 Getters: It is a static warning if a getter <i>m1</i> overrides a getter <i>m2</i> and the
|
| @@ -3156,7 +3232,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param className the name of the class where the overridden getter is declared
|
| * @see #INVALID_METHOD_OVERRIDE_RETURN_TYPE
|
| */
|
| - static const StaticWarningCode INVALID_GETTER_OVERRIDE_RETURN_TYPE = const StaticWarningCode.con1('INVALID_GETTER_OVERRIDE_RETURN_TYPE', 29, "The return type '%s' is not assignable to '%s' as required by the getter it is overriding from '%s'");
|
| + static const StaticWarningCode INVALID_GETTER_OVERRIDE_RETURN_TYPE = const StaticWarningCode.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'");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3167,7 +3243,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * actualParamTypeName
|
| * @param className the name of the class where the overridden method is declared
|
| */
|
| - static const StaticWarningCode INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE = const StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE', 30, "The parameter type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'");
|
| + static const StaticWarningCode INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE = const StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE', 31, "The parameter type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3179,7 +3255,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param className the name of the class where the overridden method is declared
|
| * @see #INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE
|
| */
|
| - static const StaticWarningCode INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE = const StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE', 31, "The parameter type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'");
|
| + static const StaticWarningCode INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE = const StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE', 32, "The parameter type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3190,7 +3266,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * actualParamTypeName
|
| * @param className the name of the class where the overridden method is declared
|
| */
|
| - static const StaticWarningCode INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE = const StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE', 32, "The parameter type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'");
|
| + static const StaticWarningCode INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE = const StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE', 33, "The parameter type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3202,7 +3278,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param className the name of the class where the overridden method is declared
|
| * @see #INVALID_GETTER_OVERRIDE_RETURN_TYPE
|
| */
|
| - static const StaticWarningCode INVALID_METHOD_OVERRIDE_RETURN_TYPE = const StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_RETURN_TYPE', 33, "The return type '%s' is not assignable to '%s' as required by the method it is overriding from '%s'");
|
| + static const StaticWarningCode INVALID_METHOD_OVERRIDE_RETURN_TYPE = const StaticWarningCode.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'");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3210,7 +3286,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a different default value
|
| * for <i>p</i>.
|
| */
|
| - static const StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED = const StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED', 34, "Parameters cannot override default values, this method overrides '%s.%s' where '%s' has a different value");
|
| + static const StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED = const StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED', 35, "Parameters cannot override default values, this method overrides '%s.%s' where '%s' has a different value");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3218,7 +3294,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a different default value
|
| * for <i>p</i>.
|
| */
|
| - static const StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL = const StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL', 35, "Parameters cannot override default values, this method overrides '%s.%s' where this positional parameter has a different value");
|
| + static const StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL = const StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL', 36, "Parameters cannot override default values, this method overrides '%s.%s' where this positional parameter has a different value");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3228,7 +3304,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param paramCount the number of named parameters in the overridden member
|
| * @param className the name of the class from the overridden method
|
| */
|
| - static const StaticWarningCode INVALID_OVERRIDE_NAMED = const StaticWarningCode.con1('INVALID_OVERRIDE_NAMED', 36, "Missing the named parameter '%s' to match the overridden method from '%s'");
|
| + static const StaticWarningCode INVALID_OVERRIDE_NAMED = const StaticWarningCode.con1('INVALID_OVERRIDE_NAMED', 37, "Missing the named parameter '%s' to match the overridden method from '%s'");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3237,7 +3313,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param paramCount the number of positional parameters in the overridden member
|
| * @param className the name of the class from the overridden method
|
| */
|
| - static const StaticWarningCode INVALID_OVERRIDE_POSITIONAL = const StaticWarningCode.con1('INVALID_OVERRIDE_POSITIONAL', 37, "Must have at least %d parameters to match the overridden method from '%s'");
|
| + static const StaticWarningCode INVALID_OVERRIDE_POSITIONAL = const StaticWarningCode.con1('INVALID_OVERRIDE_POSITIONAL', 38, "Must have at least %d parameters to match the overridden method from '%s'");
|
|
|
| /**
|
| * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i> overrides an
|
| @@ -3247,7 +3323,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param paramCount the number of required parameters in the overridden member
|
| * @param className the name of the class from the overridden method
|
| */
|
| - static const StaticWarningCode INVALID_OVERRIDE_REQUIRED = const StaticWarningCode.con1('INVALID_OVERRIDE_REQUIRED', 38, "Must have %d required parameters or less to match the overridden method from '%s'");
|
| + static const StaticWarningCode INVALID_OVERRIDE_REQUIRED = const StaticWarningCode.con1('INVALID_OVERRIDE_REQUIRED', 39, "Must have %d required parameters or less to match the overridden method from '%s'");
|
|
|
| /**
|
| * 7.3 Setters: It is a static warning if a setter <i>m1</i> overrides a setter <i>m2</i> and the
|
| @@ -3259,7 +3335,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param className the name of the class where the overridden setter is declared
|
| * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE
|
| */
|
| - static const StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = const StaticWarningCode.con1('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 39, "The parameter type '%s' is not assignable to '%s' as required by the setter it is overriding from '%s'");
|
| + static const StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = const StaticWarningCode.con1('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 40, "The parameter type '%s' is not assignable to '%s' as required by the setter it is overriding from '%s'");
|
|
|
| /**
|
| * 12.6 Lists: A run-time list literal <<i>E</i>> [<i>e<sub>1</sub></i> …
|
| @@ -3273,7 +3349,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<sub>j</sub>, 1 <=
|
| * j <= m</i>.
|
| */
|
| - static const StaticWarningCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const StaticWarningCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 40, "The element type '%s' cannot be assigned to the list type '%s'");
|
| + static const StaticWarningCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const StaticWarningCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 41, "The element type '%s' cannot be assigned to the list type '%s'");
|
|
|
| /**
|
| * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</sub></i> :
|
| @@ -3288,7 +3364,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<sub>j</sub>, 1 <=
|
| * j <= m</i>.
|
| */
|
| - static const StaticWarningCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const StaticWarningCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 41, "The element type '%s' cannot be assigned to the map key type '%s'");
|
| + static const StaticWarningCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const StaticWarningCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 42, "The element type '%s' cannot be assigned to the map key type '%s'");
|
|
|
| /**
|
| * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</sub></i> :
|
| @@ -3303,33 +3379,33 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<sub>j</sub>, 1 <=
|
| * j <= m</i>.
|
| */
|
| - static const StaticWarningCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const StaticWarningCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 42, "The element type '%s' cannot be assigned to the map value type '%s'");
|
| + static const StaticWarningCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const StaticWarningCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 43, "The element type '%s' cannot be assigned to the map value type '%s'");
|
|
|
| /**
|
| * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i> with argument type
|
| * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i> may not be
|
| * assigned to <i>S</i>.
|
| */
|
| - static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = const StaticWarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES', 43, "The parameter type for setter '%s' is '%s' which is not assignable to its getter (of type '%s')");
|
| + static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = const StaticWarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES', 44, "The parameter type for setter '%s' is '%s' which is not assignable to its getter (of type '%s')");
|
|
|
| /**
|
| * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i> with argument type
|
| * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i> may not be
|
| * assigned to <i>S</i>.
|
| */
|
| - static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPERTYPE = const StaticWarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPERTYPE', 44, "The parameter type for setter '%s' is '%s' which is not assignable to its getter (of type '%s'), from superclass '%s'");
|
| + static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPERTYPE = const StaticWarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPERTYPE', 45, "The parameter type for setter '%s' is '%s' which is not assignable to its getter (of type '%s'), from superclass '%s'");
|
|
|
| /**
|
| * 13.12 Return: It is a static warning if a function contains both one or more return statements
|
| * of the form <i>return;</i> and one or more return statements of the form <i>return e;</i>.
|
| */
|
| - static const StaticWarningCode MIXED_RETURN_TYPES = const StaticWarningCode.con1('MIXED_RETURN_TYPES', 45, "Methods and functions cannot use return both with and without values");
|
| + static const StaticWarningCode MIXED_RETURN_TYPES = const StaticWarningCode.con1('MIXED_RETURN_TYPES', 46, "Methods and functions cannot use return both with and without values");
|
|
|
| /**
|
| * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abstract class and
|
| * <i>q</i> is not a factory constructor.
|
| */
|
| - static const StaticWarningCode NEW_WITH_ABSTRACT_CLASS = const StaticWarningCode.con1('NEW_WITH_ABSTRACT_CLASS', 46, "Abstract classes cannot be created with a 'new' expression");
|
| + static const StaticWarningCode NEW_WITH_ABSTRACT_CLASS = const StaticWarningCode.con1('NEW_WITH_ABSTRACT_CLASS', 47, "Abstract classes cannot be created with a 'new' expression");
|
|
|
| /**
|
| * 15.8 Parameterized Types: Any use of a malbounded type gives rise to a static warning.
|
| @@ -3340,7 +3416,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS
|
| * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS
|
| */
|
| - static const StaticWarningCode NEW_WITH_INVALID_TYPE_PARAMETERS = const StaticWarningCode.con1('NEW_WITH_INVALID_TYPE_PARAMETERS', 47, "The type '%s' is declared with %d type parameters, but %d type arguments were given");
|
| + static const StaticWarningCode NEW_WITH_INVALID_TYPE_PARAMETERS = const StaticWarningCode.con1('NEW_WITH_INVALID_TYPE_PARAMETERS', 48, "The type '%s' is declared with %d type parameters, but %d type arguments were given");
|
|
|
| /**
|
| * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible in the current scope,
|
| @@ -3348,7 +3424,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param name the name of the non-type element
|
| */
|
| - static const StaticWarningCode NEW_WITH_NON_TYPE = const StaticWarningCode.con1('NEW_WITH_NON_TYPE', 48, "The name '%s' is not a class");
|
| + static const StaticWarningCode NEW_WITH_NON_TYPE = const StaticWarningCode.con1('NEW_WITH_NON_TYPE', 49, "The name '%s' is not a class");
|
|
|
| /**
|
| * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then:
|
| @@ -3359,7 +3435,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a static warning if the
|
| * type <i>T</i> does not declare a constructor with the same name as the declaration of <i>T</i>.
|
| */
|
| - static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = const StaticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR', 49, "The class '%s' does not have a constructor '%s'");
|
| + static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = const StaticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR', 50, "The class '%s' does not have a constructor '%s'");
|
|
|
| /**
|
| * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then:
|
| @@ -3370,7 +3446,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a static warning if the
|
| * type <i>T</i> does not declare a constructor with the same name as the declaration of <i>T</i>.
|
| */
|
| - static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = const StaticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 50, "The class '%s' does not have a default constructor");
|
| + static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = const StaticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 51, "The class '%s' does not have a default constructor");
|
|
|
| /**
|
| * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
|
| @@ -3390,7 +3466,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param memberName the name of the fourth member
|
| * @param additionalCount the number of additional missing members that aren't listed
|
| */
|
| - static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS', 51, "Missing concrete implementation of %s, %s, %s, %s and %d more");
|
| + static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS', 52, "Missing concrete implementation of %s, %s, %s, %s and %d more");
|
|
|
| /**
|
| * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
|
| @@ -3409,7 +3485,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param memberName the name of the third member
|
| * @param memberName the name of the fourth member
|
| */
|
| - static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', 52, "Missing concrete implementation of %s, %s, %s and %s");
|
| + static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', 53, "Missing concrete implementation of %s, %s, %s and %s");
|
|
|
| /**
|
| * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
|
| @@ -3425,7 +3501,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param memberName the name of the member
|
| */
|
| - static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 53, "Missing concrete implementation of %s");
|
| + static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 54, "Missing concrete implementation of %s");
|
|
|
| /**
|
| * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
|
| @@ -3443,7 +3519,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param memberName the name of the second member
|
| * @param memberName the name of the third member
|
| */
|
| - static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE', 54, "Missing concrete implementation of %s, %s and %s");
|
| + static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE', 55, "Missing concrete implementation of %s, %s and %s");
|
|
|
| /**
|
| * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
|
| @@ -3460,7 +3536,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param memberName the name of the first member
|
| * @param memberName the name of the second member
|
| */
|
| - static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 55, "Missing concrete implementation of %s and %s");
|
| + static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 56, "Missing concrete implementation of %s and %s");
|
|
|
| /**
|
| * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<sub>2</sub>) s</i> or
|
| @@ -3470,18 +3546,18 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param name the name of the non-type element
|
| */
|
| - static const StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = const StaticWarningCode.con1('NON_TYPE_IN_CATCH_CLAUSE', 56, "The name '%s' is not a type and cannot be used in an on-catch clause");
|
| + static const StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = const StaticWarningCode.con1('NON_TYPE_IN_CATCH_CLAUSE', 57, "The name '%s' is not a type and cannot be used in an on-catch clause");
|
|
|
| /**
|
| * 7.1.1 Operators: It is a static warning if the return type of the user-declared operator []= is
|
| * explicitly declared and not void.
|
| */
|
| - static const StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = const StaticWarningCode.con1('NON_VOID_RETURN_FOR_OPERATOR', 57, "The return type of the operator []= must be 'void'");
|
| + static const StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = const StaticWarningCode.con1('NON_VOID_RETURN_FOR_OPERATOR', 58, "The return type of the operator []= must be 'void'");
|
|
|
| /**
|
| * 7.3 Setters: It is a static warning if a setter declares a return type other than void.
|
| */
|
| - static const StaticWarningCode NON_VOID_RETURN_FOR_SETTER = const StaticWarningCode.con1('NON_VOID_RETURN_FOR_SETTER', 58, "The return type of the setter must be 'void'");
|
| + static const StaticWarningCode NON_VOID_RETURN_FOR_SETTER = const StaticWarningCode.con1('NON_VOID_RETURN_FOR_SETTER', 59, "The return type of the setter must be 'void'");
|
|
|
| /**
|
| * 15.1 Static Types: A type <i>T</i> is malformed iff: * <i>T</i> has the form <i>id</i> or the
|
| @@ -3494,7 +3570,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param nonTypeName the name that is not a type
|
| */
|
| - static const StaticWarningCode NOT_A_TYPE = const StaticWarningCode.con1('NOT_A_TYPE', 59, "%s is not a type");
|
| + static const StaticWarningCode NOT_A_TYPE = const StaticWarningCode.con1('NOT_A_TYPE', 60, "%s is not a type");
|
|
|
| /**
|
| * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i> or if <i>m >
|
| @@ -3504,7 +3580,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param argumentCount the actual number of positional arguments given
|
| * @see #EXTRA_POSITIONAL_ARGUMENTS
|
| */
|
| - static const StaticWarningCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const StaticWarningCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 60, "%d required argument(s) expected, but %d found");
|
| + static const StaticWarningCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const StaticWarningCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 61, "%d required argument(s) expected, but %d found");
|
|
|
| /**
|
| * 14.3 Parts: It is a static warning if the referenced part declaration <i>p</i> names a library
|
| @@ -3513,7 +3589,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param expectedLibraryName the name of expected library name
|
| * @param actualLibraryName the non-matching actual library name from the "part of" declaration
|
| */
|
| - static const StaticWarningCode PART_OF_DIFFERENT_LIBRARY = const StaticWarningCode.con1('PART_OF_DIFFERENT_LIBRARY', 61, "Expected this library to be part of '%s', not '%s'");
|
| + static const StaticWarningCode PART_OF_DIFFERENT_LIBRARY = const StaticWarningCode.con1('PART_OF_DIFFERENT_LIBRARY', 62, "Expected this library to be part of '%s', not '%s'");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> is not a subtype of
|
| @@ -3522,7 +3598,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param redirectedName the name of the redirected constructor
|
| * @param redirectingName the name of the redirecting constructor
|
| */
|
| - static const StaticWarningCode REDIRECT_TO_INVALID_FUNCTION_TYPE = const StaticWarningCode.con1('REDIRECT_TO_INVALID_FUNCTION_TYPE', 62, "The redirected constructor '%s' has incompatible parameters with '%s'");
|
| + static const StaticWarningCode REDIRECT_TO_INVALID_FUNCTION_TYPE = const StaticWarningCode.con1('REDIRECT_TO_INVALID_FUNCTION_TYPE', 63, "The redirected constructor '%s' has incompatible parameters with '%s'");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> is not a subtype of
|
| @@ -3531,21 +3607,21 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param redirectedName the name of the redirected constructor return type
|
| * @param redirectingName the name of the redirecting constructor return type
|
| */
|
| - static const StaticWarningCode REDIRECT_TO_INVALID_RETURN_TYPE = const StaticWarningCode.con1('REDIRECT_TO_INVALID_RETURN_TYPE', 63, "The return type '%s' of the redirected constructor is not assignable to '%s'");
|
| + static const StaticWarningCode REDIRECT_TO_INVALID_RETURN_TYPE = const StaticWarningCode.con1('REDIRECT_TO_INVALID_RETURN_TYPE', 64, "The return type '%s' of the redirected constructor is not assignable to '%s'");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a static warning if type does not denote a class accessible in the
|
| * current scope; if type does denote such a class <i>C</i> it is a static warning if the
|
| * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a constructor of <i>C</i>.
|
| */
|
| - static const StaticWarningCode REDIRECT_TO_MISSING_CONSTRUCTOR = const StaticWarningCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 64, "The constructor '%s' could not be found in '%s'");
|
| + static const StaticWarningCode REDIRECT_TO_MISSING_CONSTRUCTOR = const StaticWarningCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 65, "The constructor '%s' could not be found in '%s'");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a static warning if type does not denote a class accessible in the
|
| * current scope; if type does denote such a class <i>C</i> it is a static warning if the
|
| * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a constructor of <i>C</i>.
|
| */
|
| - static const StaticWarningCode REDIRECT_TO_NON_CLASS = const StaticWarningCode.con1('REDIRECT_TO_NON_CLASS', 65, "The name '%s' is not a type and cannot be used in a redirected constructor");
|
| + static const StaticWarningCode REDIRECT_TO_NON_CLASS = const StaticWarningCode.con1('REDIRECT_TO_NON_CLASS', 66, "The name '%s' is not a type and cannot be used in a redirected constructor");
|
|
|
| /**
|
| * 13.12 Return: Let <i>f</i> be the function immediately enclosing a return statement of the form
|
| @@ -3555,7 +3631,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * * The return type of <i>f</i> may not be assigned to void.
|
| * </ol>
|
| */
|
| - static const StaticWarningCode RETURN_WITHOUT_VALUE = const StaticWarningCode.con1('RETURN_WITHOUT_VALUE', 66, "Missing return value after 'return'");
|
| + static const StaticWarningCode RETURN_WITHOUT_VALUE = const StaticWarningCode.con1('RETURN_WITHOUT_VALUE', 67, "Missing return value after 'return'");
|
|
|
| /**
|
| * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not declare a static method
|
| @@ -3563,26 +3639,26 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param memberName the name of the instance member
|
| */
|
| - static const StaticWarningCode STATIC_ACCESS_TO_INSTANCE_MEMBER = const StaticWarningCode.con1('STATIC_ACCESS_TO_INSTANCE_MEMBER', 67, "Instance member '%s' cannot be accessed using static access");
|
| + static const StaticWarningCode STATIC_ACCESS_TO_INSTANCE_MEMBER = const StaticWarningCode.con1('STATIC_ACCESS_TO_INSTANCE_MEMBER', 68, "Instance member '%s' cannot be accessed using static access");
|
|
|
| /**
|
| * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assigned to the type of
|
| * <i>e<sub>k</sub></i>.
|
| */
|
| - static const StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = const StaticWarningCode.con1('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 68, "Type '%s' of the switch expression is not assignable to the type '%s' of case expressions");
|
| + static const StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = const StaticWarningCode.con1('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 69, "Type '%s' of the switch expression is not assignable to the type '%s' of case expressions");
|
|
|
| /**
|
| * 15.1 Static Types: It is a static warning to use a deferred type in a type annotation.
|
| *
|
| * @param name the name of the type that is deferred and being used in a type annotation
|
| */
|
| - static const StaticWarningCode TYPE_ANNOTATION_DEFERRED_CLASS = const StaticWarningCode.con1('TYPE_ANNOTATION_DEFERRED_CLASS', 69, "The deferred type '%s' cannot be used in a declaration");
|
| + static const StaticWarningCode TYPE_ANNOTATION_DEFERRED_CLASS = const StaticWarningCode.con1('TYPE_ANNOTATION_DEFERRED_CLASS', 70, "The deferred type '%s' cannot be used in a declaration");
|
|
|
| /**
|
| * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type available in the
|
| * current lexical scope.
|
| */
|
| - static const StaticWarningCode TYPE_TEST_NON_TYPE = const StaticWarningCode.con1('TYPE_TEST_NON_TYPE', 70, "The name '%s' is not a type and cannot be used in an 'is' expression");
|
| + static const StaticWarningCode TYPE_TEST_NON_TYPE = const StaticWarningCode.con1('TYPE_TEST_NON_TYPE', 71, "The name '%s' is not a type and cannot be used in an 'is' expression");
|
|
|
| /**
|
| * 10 Generics: However, a type parameter is considered to be a malformed type when referenced by
|
| @@ -3591,7 +3667,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * 15.1 Static Types: Any use of a malformed type gives rise to a static warning. A malformed type
|
| * is then interpreted as dynamic by the static type checker and the runtime.
|
| */
|
| - static const StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = const StaticWarningCode.con1('TYPE_PARAMETER_REFERENCED_BY_STATIC', 71, "Static members cannot reference type parameters");
|
| + static const StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = const StaticWarningCode.con1('TYPE_PARAMETER_REFERENCED_BY_STATIC', 72, "Static members cannot reference type parameters");
|
|
|
| /**
|
| * 12.16.3 Static Invocation: A static method invocation <i>i</i> has the form
|
| @@ -3601,12 +3677,12 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param undefinedClassName the name of the undefined class
|
| */
|
| - static const StaticWarningCode UNDEFINED_CLASS = const StaticWarningCode.con1('UNDEFINED_CLASS', 72, "Undefined class '%s'");
|
| + static const StaticWarningCode UNDEFINED_CLASS = const StaticWarningCode.con1('UNDEFINED_CLASS', 73, "Undefined class '%s'");
|
|
|
| /**
|
| * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool".
|
| */
|
| - static const StaticWarningCode UNDEFINED_CLASS_BOOLEAN = const StaticWarningCode.con1('UNDEFINED_CLASS_BOOLEAN', 73, "Undefined class 'boolean'; did you mean 'bool'?");
|
| + static const StaticWarningCode UNDEFINED_CLASS_BOOLEAN = const StaticWarningCode.con1('UNDEFINED_CLASS_BOOLEAN', 74, "Undefined class 'boolean'; did you mean 'bool'?");
|
|
|
| /**
|
| * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</i> in the enclosing
|
| @@ -3616,7 +3692,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param getterName the name of the getter
|
| * @param enclosingType the name of the enclosing type where the getter is being looked for
|
| */
|
| - static const StaticWarningCode UNDEFINED_GETTER = const StaticWarningCode.con1('UNDEFINED_GETTER', 74, "There is no such getter '%s' in '%s'");
|
| + static const StaticWarningCode UNDEFINED_GETTER = const StaticWarningCode.con1('UNDEFINED_GETTER', 75, "There is no such getter '%s' in '%s'");
|
|
|
| /**
|
| * 12.30 Identifier Reference: It is as static warning if an identifier expression of the form
|
| @@ -3626,7 +3702,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param name the name of the identifier
|
| */
|
| - static const StaticWarningCode UNDEFINED_IDENTIFIER = const StaticWarningCode.con1('UNDEFINED_IDENTIFIER', 75, "Undefined name '%s'");
|
| + static const StaticWarningCode UNDEFINED_IDENTIFIER = const StaticWarningCode.con1('UNDEFINED_IDENTIFIER', 76, "Undefined name '%s'");
|
|
|
| /**
|
| * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
|
| @@ -3635,7 +3711,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| *
|
| * @param name the name of the requested named parameter
|
| */
|
| - static const StaticWarningCode UNDEFINED_NAMED_PARAMETER = const StaticWarningCode.con1('UNDEFINED_NAMED_PARAMETER', 76, "The named parameter '%s' is not defined");
|
| + static const StaticWarningCode UNDEFINED_NAMED_PARAMETER = const StaticWarningCode.con1('UNDEFINED_NAMED_PARAMETER', 77, "The named parameter '%s' is not defined");
|
|
|
| /**
|
| * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs
|
| @@ -3650,7 +3726,7 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param setterName the name of the getter
|
| * @param enclosingType the name of the enclosing type where the setter is being looked for
|
| */
|
| - static const StaticWarningCode UNDEFINED_SETTER = const StaticWarningCode.con1('UNDEFINED_SETTER', 77, "There is no such setter '%s' in '%s'");
|
| + static const StaticWarningCode UNDEFINED_SETTER = const StaticWarningCode.con1('UNDEFINED_SETTER', 78, "There is no such setter '%s' in '%s'");
|
|
|
| /**
|
| * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not declare a static method
|
| @@ -3659,18 +3735,19 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
| * @param methodName the name of the method
|
| * @param enclosingType the name of the enclosing type where the method is being looked for
|
| */
|
| - static const StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = const StaticWarningCode.con1('UNDEFINED_STATIC_METHOD_OR_GETTER', 78, "There is no such static method, getter or setter '%s' in '%s'");
|
| + static const StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = const StaticWarningCode.con1('UNDEFINED_STATIC_METHOD_OR_GETTER', 79, "There is no such static method, getter or setter '%s' in '%s'");
|
|
|
| /**
|
| * 7.2 Getters: It is a static warning if the return type of a getter is void.
|
| */
|
| - static const StaticWarningCode VOID_RETURN_FOR_GETTER = const StaticWarningCode.con1('VOID_RETURN_FOR_GETTER', 79, "The return type of the getter must not be 'void'");
|
| + static const StaticWarningCode VOID_RETURN_FOR_GETTER = const StaticWarningCode.con1('VOID_RETURN_FOR_GETTER', 80, "The return type of the getter must not be 'void'");
|
|
|
| static const List<StaticWarningCode> values = const [
|
| AMBIGUOUS_IMPORT,
|
| ARGUMENT_TYPE_NOT_ASSIGNABLE,
|
| ASSIGNMENT_TO_CONST,
|
| ASSIGNMENT_TO_FINAL,
|
| + ASSIGNMENT_TO_FUNCTION,
|
| ASSIGNMENT_TO_METHOD,
|
| CASE_BLOCK_NOT_TERMINATED,
|
| CAST_TO_NON_TYPE,
|
|
|