| 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 2b1b6f7c7e48f36d2641e7c2322be7ccec22249c..5a7079e8f600ca3f44ee38b3cbb2f29aac366c90 100644
|
| --- a/pkg/analyzer/lib/src/generated/error.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error.dart
|
| @@ -383,6 +383,111 @@ class BooleanErrorListener implements AnalysisErrorListener {
|
| }
|
|
|
| /**
|
| + * The enumeration `CompileTimeErrorCode` defines the error codes used for compile time errors
|
| + * caused by constant evaluation that would throw an exception when run in checked mode. The client
|
| + * of the analysis engine is responsible for determining how these errors should be presented to the
|
| + * user (for example, a command-line compiler might elect to treat these errors differently
|
| + * depending whether it is compiling it "checked" mode).
|
| + */
|
| +class CheckedModeCompileTimeErrorCode extends Enum<CheckedModeCompileTimeErrorCode> implements ErrorCode {
|
| + /**
|
| + * 7.6.1 Generative Constructors: In checked mode, it is a dynamic type error if o is not
|
| + * <b>null</b> and the interface of the class of <i>o</i> is not a subtype of the static type of
|
| + * the field <i>v</i>.
|
| + *
|
| + * 12.11.2 Const: It is a compile-time error if evaluation of a constant object results in an
|
| + * uncaught exception being thrown.
|
| + *
|
| + * @param initializerType the name of the type of the initializer expression
|
| + * @param fieldType the name of the type of the field
|
| + */
|
| + static const CheckedModeCompileTimeErrorCode CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE = const CheckedModeCompileTimeErrorCode.con1('CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE', 0, "The initializer type '{0}' cannot be assigned to the field type '{1}'");
|
| +
|
| + /**
|
| + * 12.6 Lists: A run-time list literal <<i>E</i>> [<i>e<sub>1</sub></i> ...
|
| + * <i>e<sub>n</sub></i>] is evaluated as follows:
|
| + * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument
|
| + * <i>o<sub>i+1</sub></i><i>, 1 <= i <= n</i>
|
| + *
|
| + * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
|
| + * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 <= i <=
|
| + * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
|
| + * 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 CheckedModeCompileTimeErrorCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const CheckedModeCompileTimeErrorCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 1, "The element type '{0}' cannot be assigned to the list type '{1}'");
|
| +
|
| + /**
|
| + * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</sub></i> :
|
| + * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is evaluated as follows:
|
| + * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</sub></i> and second
|
| + * argument <i>e<sub>i</sub></i><i>, 1 <= i <= n</i>
|
| + *
|
| + * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
|
| + * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 <= i <=
|
| + * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
|
| + * 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 CheckedModeCompileTimeErrorCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const CheckedModeCompileTimeErrorCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 2, "The element type '{0}' cannot be assigned to the map key type '{1}'");
|
| +
|
| + /**
|
| + * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</sub></i> :
|
| + * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is evaluated as follows:
|
| + * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</sub></i> and second
|
| + * argument <i>e<sub>i</sub></i><i>, 1 <= i <= n</i>
|
| + *
|
| + * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
|
| + * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 <= i <=
|
| + * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
|
| + * 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 CheckedModeCompileTimeErrorCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const CheckedModeCompileTimeErrorCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 3, "The element type '{0}' cannot be assigned to the map value type '{1}'");
|
| +
|
| + static const List<CheckedModeCompileTimeErrorCode> values = const [
|
| + CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE,
|
| + LIST_ELEMENT_TYPE_NOT_ASSIGNABLE,
|
| + MAP_KEY_TYPE_NOT_ASSIGNABLE,
|
| + MAP_VALUE_TYPE_NOT_ASSIGNABLE];
|
| +
|
| + /**
|
| + * The template used to create the message to be displayed for this error.
|
| + */
|
| + final String message;
|
| +
|
| + /**
|
| + * The template used to create the correction to be displayed for this error, or `null` if
|
| + * there is no correction information for this error.
|
| + */
|
| + final String correction;
|
| +
|
| + /**
|
| + * Initialize a newly created error code to have the given message.
|
| + *
|
| + * @param message the message template used to create the message to be displayed for the error
|
| + */
|
| + const CheckedModeCompileTimeErrorCode.con1(String name, int ordinal, String message) : this.con2(name, ordinal, message, null);
|
| +
|
| + /**
|
| + * Initialize a newly created error code to have the given message and correction.
|
| + *
|
| + * @param message the template used to create the message to be displayed for the error
|
| + * @param correction the template used to create the correction to be displayed for the error
|
| + */
|
| + const CheckedModeCompileTimeErrorCode.con2(String name, int ordinal, this.message, this.correction) : super(name, ordinal);
|
| +
|
| + @override
|
| + ErrorSeverity get errorSeverity => ErrorType.CHECKED_MODE_COMPILE_TIME_ERROR.severity;
|
| +
|
| + @override
|
| + ErrorType get type => ErrorType.CHECKED_MODE_COMPILE_TIME_ERROR;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| +}
|
| +
|
| +/**
|
| * The enumeration `CompileTimeErrorCode` defines the error codes used for compile time
|
| * errors. The convention for this class is for the name of the error code to indicate the problem
|
| * that caused the error to be generated and for the error message to explain what is wrong and,
|
| @@ -548,29 +653,16 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| static const CompileTimeErrorCode CONST_DEFERRED_CLASS = const CompileTimeErrorCode.con1('CONST_DEFERRED_CLASS', 22, "Deferred classes cannot be created with 'const'");
|
|
|
| /**
|
| - * 7.6.1 Generative Constructors: In checked mode, it is a dynamic type error if o is not
|
| - * <b>null</b> and the interface of the class of <i>o</i> is not a subtype of the static type of
|
| - * the field <i>v</i>.
|
| - *
|
| - * 12.11.2 Const: It is a compile-time error if evaluation of a constant object results in an
|
| - * uncaught exception being thrown.
|
| - *
|
| - * @param initializerType the name of the type of the initializer expression
|
| - * @param fieldType the name of the type of the field
|
| - */
|
| - static const CompileTimeErrorCode CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE = const CompileTimeErrorCode.con1('CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE', 23, "The initializer type '{0}' cannot be assigned to the field type '{1}'");
|
| -
|
| - /**
|
| * 6.2 Formal Parameters: It is a compile-time error if a formal parameter is declared as a
|
| * constant variable.
|
| */
|
| - static const CompileTimeErrorCode CONST_FORMAL_PARAMETER = const CompileTimeErrorCode.con1('CONST_FORMAL_PARAMETER', 24, "Parameters cannot be 'const'");
|
| + static const CompileTimeErrorCode CONST_FORMAL_PARAMETER = const CompileTimeErrorCode.con1('CONST_FORMAL_PARAMETER', 23, "Parameters cannot be 'const'");
|
|
|
| /**
|
| * 5 Variables: A constant variable must be initialized to a compile-time constant or a
|
| * compile-time error occurs.
|
| */
|
| - static const CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE = const CompileTimeErrorCode.con1('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 25, "'const' variables must be constant value");
|
| + static const CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE = const CompileTimeErrorCode.con1('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 24, "'const' variables must be constant value");
|
|
|
| /**
|
| * 5 Variables: A constant variable must be initialized to a compile-time constant or a
|
| @@ -579,20 +671,20 @@ 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 CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY', 26, "Constant values from a deferred library cannot be used to initialized a 'const' variable");
|
| + static const CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY', 25, "Constant values from a deferred library cannot be used to initialized a 'const' variable");
|
|
|
| /**
|
| * 7.5 Instance Variables: It is a compile-time error if an instance variable is declared to be
|
| * constant.
|
| */
|
| - static const CompileTimeErrorCode CONST_INSTANCE_FIELD = const CompileTimeErrorCode.con1('CONST_INSTANCE_FIELD', 27, "Only static fields can be declared as 'const'");
|
| + static const CompileTimeErrorCode CONST_INSTANCE_FIELD = const CompileTimeErrorCode.con1('CONST_INSTANCE_FIELD', 26, "Only static fields can be declared as 'const'");
|
|
|
| /**
|
| * 12.8 Maps: It is a compile-time error if the key of an entry in a constant map literal is an
|
| * instance of a class that implements the operator <i>==</i> unless the key is a string or
|
| * integer.
|
| */
|
| - static const CompileTimeErrorCode CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS = const CompileTimeErrorCode.con1('CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS', 28, "The constant map entry key expression type '{0}' cannot override the == operator");
|
| + static const CompileTimeErrorCode CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS = const CompileTimeErrorCode.con1('CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS', 27, "The constant map entry key expression type '{0}' cannot override the == operator");
|
|
|
| /**
|
| * 5 Variables: A constant variable must be initialized to a compile-time constant (12.1) or a
|
| @@ -600,45 +692,45 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param name the name of the uninitialized final variable
|
| */
|
| - static const CompileTimeErrorCode CONST_NOT_INITIALIZED = const CompileTimeErrorCode.con1('CONST_NOT_INITIALIZED', 29, "The const variable '{0}' must be initialized");
|
| + static const CompileTimeErrorCode CONST_NOT_INITIALIZED = const CompileTimeErrorCode.con1('CONST_NOT_INITIALIZED', 28, "The const variable '{0}' must be initialized");
|
|
|
| /**
|
| * 12.11.2 Const: An expression of one of the forms !e, e1 && e2 or e1 || e2, where e, e1 and e2
|
| * are constant expressions that evaluate to a boolean value.
|
| */
|
| - static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL = const CompileTimeErrorCode.con1('CONST_EVAL_TYPE_BOOL', 30, "An expression of type 'bool' was expected");
|
| + static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL = const CompileTimeErrorCode.con1('CONST_EVAL_TYPE_BOOL', 29, "An expression of type 'bool' was expected");
|
|
|
| /**
|
| * 12.11.2 Const: An expression of one of the forms e1 == e2 or e1 != e2 where e1 and e2 are
|
| * constant expressions that evaluate to a numeric, string or boolean value or to null.
|
| */
|
| - static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL_NUM_STRING = const CompileTimeErrorCode.con1('CONST_EVAL_TYPE_BOOL_NUM_STRING', 31, "An expression of type 'bool', 'num', 'String' or 'null' was expected");
|
| + static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL_NUM_STRING = const CompileTimeErrorCode.con1('CONST_EVAL_TYPE_BOOL_NUM_STRING', 30, "An expression of type 'bool', 'num', 'String' or 'null' was expected");
|
|
|
| /**
|
| * 12.11.2 Const: An expression of one of the forms ~e, e1 ^ e2, e1 & e2, e1 | e2, e1 >> e2 or e1
|
| * << e2, where e, e1 and e2 are constant expressions that evaluate to an integer value or to
|
| * null.
|
| */
|
| - static const CompileTimeErrorCode CONST_EVAL_TYPE_INT = const CompileTimeErrorCode.con1('CONST_EVAL_TYPE_INT', 32, "An expression of type 'int' was expected");
|
| + static const CompileTimeErrorCode CONST_EVAL_TYPE_INT = const CompileTimeErrorCode.con1('CONST_EVAL_TYPE_INT', 31, "An expression of type 'int' was expected");
|
|
|
| /**
|
| * 12.11.2 Const: An expression of one of the forms e, e1 + e2, e1 - e2, e1 * e2, e1 / e2, e1 ~/
|
| * e2, e1 > e2, e1 < e2, e1 >= e2, e1 <= e2 or e1 % e2, where e, e1 and e2 are constant
|
| * expressions that evaluate to a numeric value or to null..
|
| */
|
| - static const CompileTimeErrorCode CONST_EVAL_TYPE_NUM = const CompileTimeErrorCode.con1('CONST_EVAL_TYPE_NUM', 33, "An expression of type 'num' was expected");
|
| + static const CompileTimeErrorCode CONST_EVAL_TYPE_NUM = const CompileTimeErrorCode.con1('CONST_EVAL_TYPE_NUM', 32, "An expression of type 'num' was expected");
|
|
|
| /**
|
| * 12.11.2 Const: It is a compile-time error if evaluation of a constant object results in an
|
| * uncaught exception being thrown.
|
| */
|
| - static const CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = const CompileTimeErrorCode.con1('CONST_EVAL_THROWS_EXCEPTION', 34, "Evaluation of this constant expression causes exception");
|
| + static const CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = const CompileTimeErrorCode.con1('CONST_EVAL_THROWS_EXCEPTION', 33, "Evaluation of this constant expression causes exception");
|
|
|
| /**
|
| * 12.11.2 Const: It is a compile-time error if evaluation of a constant object results in an
|
| * uncaught exception being thrown.
|
| */
|
| - static const CompileTimeErrorCode CONST_EVAL_THROWS_IDBZE = const CompileTimeErrorCode.con1('CONST_EVAL_THROWS_IDBZE', 35, "Evaluation of this constant expression throws IntegerDivisionByZeroException");
|
| + static const CompileTimeErrorCode CONST_EVAL_THROWS_IDBZE = const CompileTimeErrorCode.con1('CONST_EVAL_THROWS_IDBZE', 34, "Evaluation of this constant expression throws IntegerDivisionByZeroException");
|
|
|
| /**
|
| * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S<U<sub>1</sub>, …,
|
| @@ -651,7 +743,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @see CompileTimeErrorCode#NEW_WITH_INVALID_TYPE_PARAMETERS
|
| * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS
|
| */
|
| - static const CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = const CompileTimeErrorCode.con1('CONST_WITH_INVALID_TYPE_PARAMETERS', 36, "The type '{0}' is declared with {1} type parameters, but {2} type arguments were given");
|
| + static const CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = const CompileTimeErrorCode.con1('CONST_WITH_INVALID_TYPE_PARAMETERS', 35, "The type '{0}' is declared with {1} type parameters, but {2} type arguments were given");
|
|
|
| /**
|
| * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>, …, a<sub>n</sub>,
|
| @@ -659,13 +751,13 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * compile-time error if the type <i>T</i> does not declare a constant constructor with the same
|
| * name as the declaration of <i>T</i>.
|
| */
|
| - static const CompileTimeErrorCode CONST_WITH_NON_CONST = const CompileTimeErrorCode.con1('CONST_WITH_NON_CONST', 37, "The constructor being called is not a 'const' constructor");
|
| + static const CompileTimeErrorCode CONST_WITH_NON_CONST = const CompileTimeErrorCode.con1('CONST_WITH_NON_CONST', 36, "The constructor being called is not a 'const' constructor");
|
|
|
| /**
|
| * 12.11.2 Const: In all of the above cases, it is a compile-time error if <i>a<sub>i</sub>, 1
|
| * <= i <= n + k</i>, is not a compile-time constant expression.
|
| */
|
| - static const CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT = const CompileTimeErrorCode.con1('CONST_WITH_NON_CONSTANT_ARGUMENT', 38, "Arguments of a constant creation must be constant expressions");
|
| + static const CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT = const CompileTimeErrorCode.con1('CONST_WITH_NON_CONSTANT_ARGUMENT', 37, "Arguments of a constant creation must be constant expressions");
|
|
|
| /**
|
| * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class accessible in the current
|
| @@ -678,12 +770,12 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param name the name of the non-type element
|
| */
|
| - static const CompileTimeErrorCode CONST_WITH_NON_TYPE = const CompileTimeErrorCode.con1('CONST_WITH_NON_TYPE', 39, "The name '{0}' is not a class");
|
| + static const CompileTimeErrorCode CONST_WITH_NON_TYPE = const CompileTimeErrorCode.con1('CONST_WITH_NON_TYPE', 38, "The name '{0}' is not a class");
|
|
|
| /**
|
| * 12.11.2 Const: It is a compile-time error if <i>T</i> includes any type parameters.
|
| */
|
| - static const CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS = const CompileTimeErrorCode.con1('CONST_WITH_TYPE_PARAMETERS', 40, "The constant creation cannot use a type parameter");
|
| + static const CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS = const CompileTimeErrorCode.con1('CONST_WITH_TYPE_PARAMETERS', 39, "The constant creation cannot use a type parameter");
|
|
|
| /**
|
| * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant
|
| @@ -692,7 +784,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param typeName the name of the type
|
| * @param constructorName the name of the requested constant constructor
|
| */
|
| - static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR = const CompileTimeErrorCode.con1('CONST_WITH_UNDEFINED_CONSTRUCTOR', 41, "The class '{0}' does not have a constant constructor '{1}'");
|
| + static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR = const CompileTimeErrorCode.con1('CONST_WITH_UNDEFINED_CONSTRUCTOR', 40, "The class '{0}' does not have a constant constructor '{1}'");
|
|
|
| /**
|
| * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant
|
| @@ -700,32 +792,32 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param typeName the name of the type
|
| */
|
| - static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = const CompileTimeErrorCode.con1('CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 42, "The class '{0}' does not have a default constant constructor");
|
| + static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = const CompileTimeErrorCode.con1('CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 41, "The class '{0}' does not have a default constant constructor");
|
|
|
| /**
|
| * 15.3.1 Typedef: It is a compile-time error if any default values are specified in the signature
|
| * of a function type alias.
|
| */
|
| - static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS', 43, "Default values aren't allowed in typedefs");
|
| + static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS', 42, "Default values aren't allowed in typedefs");
|
|
|
| /**
|
| * 6.2.1 Required Formals: By means of a function signature that names the parameter and describes
|
| * its type as a function type. It is a compile-time error if any default values are specified in
|
| * the signature of such a function type.
|
| */
|
| - static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER', 44, "Default values aren't allowed in function type parameters");
|
| + static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER', 43, "Default values aren't allowed in function type parameters");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a compile-time error if <i>k</i> explicitly specifies a default value
|
| * for an optional parameter.
|
| */
|
| - static const CompileTimeErrorCode DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR', 45, "Default values aren't allowed in factory constructors that redirect to another constructor");
|
| + static const CompileTimeErrorCode DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR', 44, "Default values aren't allowed in factory constructors that redirect to another constructor");
|
|
|
| /**
|
| * 3.1 Scoping: It is a compile-time error if there is more than one entity with the same name
|
| * declared in the same scope.
|
| */
|
| - static const CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_DEFAULT = const CompileTimeErrorCode.con1('DUPLICATE_CONSTRUCTOR_DEFAULT', 46, "The default constructor is already defined");
|
| + static const CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_DEFAULT = const CompileTimeErrorCode.con1('DUPLICATE_CONSTRUCTOR_DEFAULT', 45, "The default constructor is already defined");
|
|
|
| /**
|
| * 3.1 Scoping: It is a compile-time error if there is more than one entity with the same name
|
| @@ -733,7 +825,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param duplicateName the name of the duplicate entity
|
| */
|
| - static const CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_NAME = const CompileTimeErrorCode.con1('DUPLICATE_CONSTRUCTOR_NAME', 47, "The constructor with name '{0}' is already defined");
|
| + static const CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_NAME = const CompileTimeErrorCode.con1('DUPLICATE_CONSTRUCTOR_NAME', 46, "The constructor with name '{0}' is already defined");
|
|
|
| /**
|
| * 3.1 Scoping: It is a compile-time error if there is more than one entity with the same name
|
| @@ -746,7 +838,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param duplicateName the name of the duplicate entity
|
| */
|
| - static const CompileTimeErrorCode DUPLICATE_DEFINITION = const CompileTimeErrorCode.con1('DUPLICATE_DEFINITION', 48, "The name '{0}' is already defined");
|
| + static const CompileTimeErrorCode DUPLICATE_DEFINITION = const CompileTimeErrorCode.con1('DUPLICATE_DEFINITION', 47, "The name '{0}' is already defined");
|
|
|
| /**
|
| * 7. Classes: It is a compile-time error if a class has an instance member and a static member
|
| @@ -758,21 +850,21 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param name the name of the conflicting members
|
| * @see #DUPLICATE_DEFINITION
|
| */
|
| - static const CompileTimeErrorCode DUPLICATE_DEFINITION_INHERITANCE = const CompileTimeErrorCode.con1('DUPLICATE_DEFINITION_INHERITANCE', 49, "The name '{0}' is already defined in '{1}'");
|
| + static const CompileTimeErrorCode DUPLICATE_DEFINITION_INHERITANCE = const CompileTimeErrorCode.con1('DUPLICATE_DEFINITION_INHERITANCE', 48, "The name '{0}' is already defined in '{1}'");
|
|
|
| /**
|
| * 12.14.2 Binding Actuals to Formals: It is a compile-time error if <i>q<sub>i</sub> =
|
| * q<sub>j</sub></i> for any <i>i != j</i> [where <i>q<sub>i</sub></i> is the label for a named
|
| * argument].
|
| */
|
| - static const CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = const CompileTimeErrorCode.con1('DUPLICATE_NAMED_ARGUMENT', 50, "The argument for the named parameter '{0}' was already specified");
|
| + static const CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = const CompileTimeErrorCode.con1('DUPLICATE_NAMED_ARGUMENT', 49, "The argument for the named parameter '{0}' was already specified");
|
|
|
| /**
|
| * SDK implementation libraries can be exported only by other SDK libraries.
|
| *
|
| * @param uri the uri pointing to a library
|
| */
|
| - static const CompileTimeErrorCode EXPORT_INTERNAL_LIBRARY = const CompileTimeErrorCode.con1('EXPORT_INTERNAL_LIBRARY', 51, "The library '{0}' is internal and cannot be exported");
|
| + static const CompileTimeErrorCode EXPORT_INTERNAL_LIBRARY = const CompileTimeErrorCode.con1('EXPORT_INTERNAL_LIBRARY', 50, "The library '{0}' is internal and cannot be exported");
|
|
|
| /**
|
| * 14.2 Exports: It is a compile-time error if the compilation unit found at the specified URI is
|
| @@ -780,12 +872,12 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param uri the uri pointing to a non-library declaration
|
| */
|
| - static const CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = const CompileTimeErrorCode.con1('EXPORT_OF_NON_LIBRARY', 52, "The exported library '{0}' must not have a part-of directive");
|
| + static const CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = const CompileTimeErrorCode.con1('EXPORT_OF_NON_LIBRARY', 51, "The exported library '{0}' must not have a part-of directive");
|
|
|
| /**
|
| * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum.
|
| */
|
| - static const CompileTimeErrorCode EXTENDS_ENUM = const CompileTimeErrorCode.con1('EXTENDS_ENUM', 53, "Classes cannot extend an enum");
|
| + static const CompileTimeErrorCode EXTENDS_ENUM = const CompileTimeErrorCode.con1('EXTENDS_ENUM', 52, "Classes cannot extend an enum");
|
|
|
| /**
|
| * 7.9 Superclasses: It is a compile-time error if the extends clause of a class <i>C</i> includes
|
| @@ -793,7 +885,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param typeName the name of the superclass that was not found
|
| */
|
| - static const CompileTimeErrorCode EXTENDS_NON_CLASS = const CompileTimeErrorCode.con1('EXTENDS_NON_CLASS', 54, "Classes can only extend other classes");
|
| + static const CompileTimeErrorCode EXTENDS_NON_CLASS = const CompileTimeErrorCode.con1('EXTENDS_NON_CLASS', 53, "Classes can only extend other classes");
|
|
|
| /**
|
| * 12.2 Null: It is a compile-time error for a class to attempt to extend or implement Null.
|
| @@ -812,7 +904,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param typeName the name of the type that cannot be extended
|
| * @see #IMPLEMENTS_DISALLOWED_CLASS
|
| */
|
| - static const CompileTimeErrorCode EXTENDS_DISALLOWED_CLASS = const CompileTimeErrorCode.con1('EXTENDS_DISALLOWED_CLASS', 55, "Classes cannot extend '{0}'");
|
| + static const CompileTimeErrorCode EXTENDS_DISALLOWED_CLASS = const CompileTimeErrorCode.con1('EXTENDS_DISALLOWED_CLASS', 54, "Classes cannot extend '{0}'");
|
|
|
| /**
|
| * 7.9 Superclasses: It is a compile-time error if the extends clause of a class <i>C</i> includes
|
| @@ -822,7 +914,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @see #IMPLEMENTS_DEFERRED_CLASS
|
| * @see #MIXIN_DEFERRED_CLASS
|
| */
|
| - static const CompileTimeErrorCode EXTENDS_DEFERRED_CLASS = const CompileTimeErrorCode.con1('EXTENDS_DEFERRED_CLASS', 56, "This class cannot extend the deferred class '{0}'");
|
| + static const CompileTimeErrorCode EXTENDS_DEFERRED_CLASS = const CompileTimeErrorCode.con1('EXTENDS_DEFERRED_CLASS', 55, "This class cannot extend the deferred class '{0}'");
|
|
|
| /**
|
| * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i> or if <i>m >
|
| @@ -834,21 +926,21 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param requiredCount the maximum number of positional arguments
|
| * @param argumentCount the actual number of positional arguments given
|
| */
|
| - static const CompileTimeErrorCode EXTRA_POSITIONAL_ARGUMENTS = const CompileTimeErrorCode.con1('EXTRA_POSITIONAL_ARGUMENTS', 57, "{0} positional arguments expected, but {1} found");
|
| + static const CompileTimeErrorCode EXTRA_POSITIONAL_ARGUMENTS = const CompileTimeErrorCode.con1('EXTRA_POSITIONAL_ARGUMENTS', 56, "{0} positional arguments expected, but {1} found");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
|
| * error if more than one initializer corresponding to a given instance variable appears in
|
| * <i>k</i>'s list.
|
| */
|
| - static const CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS = const CompileTimeErrorCode.con1('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 58, "The field '{0}' cannot be initialized twice in the same constructor");
|
| + static const CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS = const CompileTimeErrorCode.con1('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 57, "The field '{0}' cannot be initialized twice in the same constructor");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
|
| * error if <i>k</i>'s initializer list contains an initializer for a variable that is initialized
|
| * by means of an initializing formal of <i>k</i>.
|
| */
|
| - static const CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER = const CompileTimeErrorCode.con1('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER', 59, "Fields cannot be initialized in both the parameter list and the initializers");
|
| + static const CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER = const CompileTimeErrorCode.con1('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER', 58, "Fields cannot be initialized in both the parameter list and the initializers");
|
|
|
| /**
|
| * 5 Variables: It is a compile-time error if a final instance variable that has is initialized by
|
| @@ -857,19 +949,19 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param name the name of the field in question
|
| */
|
| - static const CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = const CompileTimeErrorCode.con1('FINAL_INITIALIZED_MULTIPLE_TIMES', 60, "'{0}' is a final field and so can only be set once");
|
| + static const CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = const CompileTimeErrorCode.con1('FINAL_INITIALIZED_MULTIPLE_TIMES', 59, "'{0}' is a final field and so can only be set once");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: It is a compile-time error if an initializing formal is used by
|
| * a function other than a non-redirecting generative constructor.
|
| */
|
| - static const CompileTimeErrorCode FIELD_INITIALIZER_FACTORY_CONSTRUCTOR = const CompileTimeErrorCode.con1('FIELD_INITIALIZER_FACTORY_CONSTRUCTOR', 61, "Initializing formal fields cannot be used in factory constructors");
|
| + static const CompileTimeErrorCode FIELD_INITIALIZER_FACTORY_CONSTRUCTOR = const CompileTimeErrorCode.con1('FIELD_INITIALIZER_FACTORY_CONSTRUCTOR', 60, "Initializing formal fields cannot be used in factory constructors");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: It is a compile-time error if an initializing formal is used by
|
| * a function other than a non-redirecting generative constructor.
|
| */
|
| - static const CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = const CompileTimeErrorCode.con1('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 62, "Initializing formal fields can only be used in constructors");
|
| + static const CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = const CompileTimeErrorCode.con1('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 61, "Initializing formal fields can only be used in constructors");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
|
| @@ -878,7 +970,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 7.6.1 Generative Constructors: It is a compile-time error if an initializing formal is used by
|
| * a function other than a non-redirecting generative constructor.
|
| */
|
| - static const CompileTimeErrorCode FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR = const CompileTimeErrorCode.con1('FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR', 63, "The redirecting constructor cannot have a field initializer");
|
| + static const CompileTimeErrorCode FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR = const CompileTimeErrorCode.con1('FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR', 62, "The redirecting constructor cannot have a field initializer");
|
|
|
| /**
|
| * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same
|
| @@ -886,7 +978,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param name the conflicting name of the getter and method
|
| */
|
| - static const CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = const CompileTimeErrorCode.con1('GETTER_AND_METHOD_WITH_SAME_NAME', 64, "'{0}' cannot be used to name a getter, there is already a method with the same name");
|
| + static const CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = const CompileTimeErrorCode.con1('GETTER_AND_METHOD_WITH_SAME_NAME', 63, "'{0}' cannot be used to name a getter, there is already a method with the same name");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the implements clause of a class <i>C</i>
|
| @@ -896,7 +988,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @see #EXTENDS_DEFERRED_CLASS
|
| * @see #MIXIN_DEFERRED_CLASS
|
| */
|
| - static const CompileTimeErrorCode IMPLEMENTS_DEFERRED_CLASS = const CompileTimeErrorCode.con1('IMPLEMENTS_DEFERRED_CLASS', 65, "This class cannot implement the deferred class '{0}'");
|
| + static const CompileTimeErrorCode IMPLEMENTS_DEFERRED_CLASS = const CompileTimeErrorCode.con1('IMPLEMENTS_DEFERRED_CLASS', 64, "This class cannot implement the deferred class '{0}'");
|
|
|
| /**
|
| * 12.2 Null: It is a compile-time error for a class to attempt to extend or implement Null.
|
| @@ -915,18 +1007,18 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param typeName the name of the type that cannot be implemented
|
| * @see #EXTENDS_DISALLOWED_CLASS
|
| */
|
| - static const CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = const CompileTimeErrorCode.con1('IMPLEMENTS_DISALLOWED_CLASS', 66, "Classes cannot implement '{0}'");
|
| + static const CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = const CompileTimeErrorCode.con1('IMPLEMENTS_DISALLOWED_CLASS', 65, "Classes cannot implement '{0}'");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the implements clause of a class includes
|
| * type dynamic.
|
| */
|
| - static const CompileTimeErrorCode IMPLEMENTS_DYNAMIC = const CompileTimeErrorCode.con1('IMPLEMENTS_DYNAMIC', 67, "Classes cannot implement 'dynamic'");
|
| + static const CompileTimeErrorCode IMPLEMENTS_DYNAMIC = const CompileTimeErrorCode.con1('IMPLEMENTS_DYNAMIC', 66, "Classes cannot implement 'dynamic'");
|
|
|
| /**
|
| * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum.
|
| */
|
| - static const CompileTimeErrorCode IMPLEMENTS_ENUM = const CompileTimeErrorCode.con1('IMPLEMENTS_ENUM', 68, "Classes cannot implement an enum");
|
| + static const CompileTimeErrorCode IMPLEMENTS_ENUM = const CompileTimeErrorCode.con1('IMPLEMENTS_ENUM', 67, "Classes cannot implement an enum");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the implements clause of a class <i>C</i>
|
| @@ -935,7 +1027,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param typeName the name of the interface that was not found
|
| */
|
| - static const CompileTimeErrorCode IMPLEMENTS_NON_CLASS = const CompileTimeErrorCode.con1('IMPLEMENTS_NON_CLASS', 69, "Classes can only implement other classes");
|
| + static const CompileTimeErrorCode IMPLEMENTS_NON_CLASS = const CompileTimeErrorCode.con1('IMPLEMENTS_NON_CLASS', 68, "Classes can only implement other classes");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if a type <i>T</i> appears more than once in
|
| @@ -943,7 +1035,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param className the name of the class that is implemented more than once
|
| */
|
| - static const CompileTimeErrorCode IMPLEMENTS_REPEATED = const CompileTimeErrorCode.con1('IMPLEMENTS_REPEATED', 70, "'{0}' can only be implemented once");
|
| + static const CompileTimeErrorCode IMPLEMENTS_REPEATED = const CompileTimeErrorCode.con1('IMPLEMENTS_REPEATED', 69, "'{0}' can only be implemented once");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the superclass of a class <i>C</i> appears
|
| @@ -951,7 +1043,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param className the name of the class that appears in both "extends" and "implements" clauses
|
| */
|
| - static const CompileTimeErrorCode IMPLEMENTS_SUPER_CLASS = const CompileTimeErrorCode.con1('IMPLEMENTS_SUPER_CLASS', 71, "'{0}' cannot be used in both 'extends' and 'implements' clauses");
|
| + static const CompileTimeErrorCode IMPLEMENTS_SUPER_CLASS = const CompileTimeErrorCode.con1('IMPLEMENTS_SUPER_CLASS', 70, "'{0}' cannot be used in both 'extends' and 'implements' clauses");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Note that <b>this</b> is not in scope on the right hand side of
|
| @@ -963,14 +1055,14 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param name the name of the type in question
|
| */
|
| - static const CompileTimeErrorCode IMPLICIT_THIS_REFERENCE_IN_INITIALIZER = const CompileTimeErrorCode.con1('IMPLICIT_THIS_REFERENCE_IN_INITIALIZER', 72, "Only static members can be accessed in initializers");
|
| + static const CompileTimeErrorCode IMPLICIT_THIS_REFERENCE_IN_INITIALIZER = const CompileTimeErrorCode.con1('IMPLICIT_THIS_REFERENCE_IN_INITIALIZER', 71, "Only static members can be accessed in initializers");
|
|
|
| /**
|
| * SDK implementation libraries can be imported only by other SDK libraries.
|
| *
|
| * @param uri the uri pointing to a library
|
| */
|
| - static const CompileTimeErrorCode IMPORT_INTERNAL_LIBRARY = const CompileTimeErrorCode.con1('IMPORT_INTERNAL_LIBRARY', 73, "The library '{0}' is internal and cannot be imported");
|
| + static const CompileTimeErrorCode IMPORT_INTERNAL_LIBRARY = const CompileTimeErrorCode.con1('IMPORT_INTERNAL_LIBRARY', 72, "The library '{0}' is internal and cannot be imported");
|
|
|
| /**
|
| * 14.1 Imports: It is a compile-time error if the specified URI of an immediate import does not
|
| @@ -979,7 +1071,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param uri the uri pointing to a non-library declaration
|
| * @see StaticWarningCode#IMPORT_OF_NON_LIBRARY
|
| */
|
| - static const CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = const CompileTimeErrorCode.con1('IMPORT_OF_NON_LIBRARY', 74, "The imported library '{0}' must not have a part-of directive");
|
| + static const CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = const CompileTimeErrorCode.con1('IMPORT_OF_NON_LIBRARY', 73, "The imported library '{0}' must not have a part-of directive");
|
|
|
| /**
|
| * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<sub>k</sub></i> are
|
| @@ -988,7 +1080,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param expressionSource the expression source code that is the unexpected type
|
| * @param expectedType the name of the expected type
|
| */
|
| - static const CompileTimeErrorCode INCONSISTENT_CASE_EXPRESSION_TYPES = const CompileTimeErrorCode.con1('INCONSISTENT_CASE_EXPRESSION_TYPES', 75, "Case expressions must have the same types, '{0}' is not a '{1}'");
|
| + static const CompileTimeErrorCode INCONSISTENT_CASE_EXPRESSION_TYPES = const CompileTimeErrorCode.con1('INCONSISTENT_CASE_EXPRESSION_TYPES', 74, "Case expressions must have the same types, '{0}' is not a '{1}'");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
|
| @@ -999,7 +1091,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * immediately enclosing class
|
| * @see #INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD
|
| */
|
| - static const CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = const CompileTimeErrorCode.con1('INITIALIZER_FOR_NON_EXISTANT_FIELD', 76, "'{0}' is not a variable in the enclosing class");
|
| + static const CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = const CompileTimeErrorCode.con1('INITIALIZER_FOR_NON_EXISTANT_FIELD', 75, "'{0}' is not a variable in the enclosing class");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
|
| @@ -1010,7 +1102,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * enclosing class
|
| * @see #INITIALIZING_FORMAL_FOR_STATIC_FIELD
|
| */
|
| - static const CompileTimeErrorCode INITIALIZER_FOR_STATIC_FIELD = const CompileTimeErrorCode.con1('INITIALIZER_FOR_STATIC_FIELD', 77, "'{0}' is a static variable in the enclosing class, variables initialized in a constructor cannot be static");
|
| + static const CompileTimeErrorCode INITIALIZER_FOR_STATIC_FIELD = const CompileTimeErrorCode.con1('INITIALIZER_FOR_STATIC_FIELD', 76, "'{0}' is a static variable in the enclosing class, variables initialized in a constructor cannot be static");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.id</i>. It is a
|
| @@ -1022,7 +1114,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @see #INITIALIZING_FORMAL_FOR_STATIC_FIELD
|
| * @see #INITIALIZER_FOR_NON_EXISTANT_FIELD
|
| */
|
| - static const CompileTimeErrorCode INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD = const CompileTimeErrorCode.con1('INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD', 78, "'{0}' is not a variable in the enclosing class");
|
| + static const CompileTimeErrorCode INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD = const CompileTimeErrorCode.con1('INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD', 77, "'{0}' is not a variable in the enclosing class");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.id</i>. It is a
|
| @@ -1033,32 +1125,32 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * enclosing class
|
| * @see #INITIALIZER_FOR_STATIC_FIELD
|
| */
|
| - static const CompileTimeErrorCode INITIALIZING_FORMAL_FOR_STATIC_FIELD = const CompileTimeErrorCode.con1('INITIALIZING_FORMAL_FOR_STATIC_FIELD', 79, "'{0}' is a static field in the enclosing class, fields initialized in a constructor cannot be static");
|
| + static const CompileTimeErrorCode INITIALIZING_FORMAL_FOR_STATIC_FIELD = const CompileTimeErrorCode.con1('INITIALIZING_FORMAL_FOR_STATIC_FIELD', 78, "'{0}' is a static field in the enclosing class, fields initialized in a constructor cannot be static");
|
|
|
| /**
|
| * 12.30 Identifier Reference: Otherwise, e is equivalent to the property extraction
|
| * <b>this</b>.<i>id</i>.
|
| */
|
| - static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_FACTORY = const CompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_FACTORY', 80, "Instance members cannot be accessed from a factory constructor");
|
| + static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_FACTORY = const CompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_FACTORY', 79, "Instance members cannot be accessed from a factory constructor");
|
|
|
| /**
|
| * 12.30 Identifier Reference: Otherwise, e is equivalent to the property extraction
|
| * <b>this</b>.<i>id</i>.
|
| */
|
| - static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_STATIC = const CompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_STATIC', 81, "Instance members cannot be accessed from a static method");
|
| + static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_STATIC = const CompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_STATIC', 80, "Instance members cannot be accessed from a static method");
|
|
|
| /**
|
| * Enum proposal: It is also a compile-time error to explicitly instantiate an enum via 'new' or
|
| * 'const' or to access its private fields.
|
| */
|
| - static const CompileTimeErrorCode INSTANTIATE_ENUM = const CompileTimeErrorCode.con1('INSTANTIATE_ENUM', 82, "Enums cannot be instantiated");
|
| + static const CompileTimeErrorCode INSTANTIATE_ENUM = const CompileTimeErrorCode.con1('INSTANTIATE_ENUM', 81, "Enums cannot be instantiated");
|
|
|
| /**
|
| * 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.
|
| */
|
| - static const CompileTimeErrorCode INVALID_ANNOTATION = const CompileTimeErrorCode.con1('INVALID_ANNOTATION', 83, "Annotation can be only constant variable or constant constructor invocation");
|
| + static const CompileTimeErrorCode INVALID_ANNOTATION = const CompileTimeErrorCode.con1('INVALID_ANNOTATION', 82, "Annotation can be only constant variable or constant constructor invocation");
|
|
|
| /**
|
| * 11 Metadata: Metadata consists of a series of annotations, each of which begin with the
|
| @@ -1068,25 +1160,25 @@ 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 INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY', 84, "Constant values from a deferred library cannot be used as annotations");
|
| + static const CompileTimeErrorCode INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY', 83, "Constant values from a deferred library cannot be used as annotations");
|
|
|
| /**
|
| * 15.31 Identifier Reference: It is a compile-time error if any of the identifiers async, await
|
| * or yield is used as an identifier in a function body marked with either async, async* or sync*.
|
| */
|
| - static const CompileTimeErrorCode INVALID_IDENTIFIER_IN_ASYNC = const CompileTimeErrorCode.con1('INVALID_IDENTIFIER_IN_ASYNC', 85, "The identifier '{0}' cannot be used in a function marked with async, async* or sync*");
|
| + static const CompileTimeErrorCode INVALID_IDENTIFIER_IN_ASYNC = const CompileTimeErrorCode.con1('INVALID_IDENTIFIER_IN_ASYNC', 84, "The identifier '{0}' cannot be used in a function marked with async, async* or sync*");
|
|
|
| /**
|
| * 9. Functions: It is a compile-time error if an async, async* or sync* modifier is attached to
|
| * the body of a setter or constructor.
|
| */
|
| - static const CompileTimeErrorCode INVALID_MODIFIER_ON_CONSTRUCTOR = const CompileTimeErrorCode.con1('INVALID_MODIFIER_ON_CONSTRUCTOR', 86, "The modifier '{0}' cannot be applied to the body of a constructor");
|
| + static const CompileTimeErrorCode INVALID_MODIFIER_ON_CONSTRUCTOR = const CompileTimeErrorCode.con1('INVALID_MODIFIER_ON_CONSTRUCTOR', 85, "The modifier '{0}' cannot be applied to the body of a constructor");
|
|
|
| /**
|
| * 9. Functions: It is a compile-time error if an async, async* or sync* modifier is attached to
|
| * the body of a setter or constructor.
|
| */
|
| - static const CompileTimeErrorCode INVALID_MODIFIER_ON_SETTER = const CompileTimeErrorCode.con1('INVALID_MODIFIER_ON_SETTER', 87, "The modifier '{0}' cannot be applied to the body of a setter");
|
| + static const CompileTimeErrorCode INVALID_MODIFIER_ON_SETTER = const CompileTimeErrorCode.con1('INVALID_MODIFIER_ON_SETTER', 86, "The modifier '{0}' cannot be applied to the body of a setter");
|
|
|
| /**
|
| * TODO(brianwilkerson) Remove this when we have decided on how to report errors in compile-time
|
| @@ -1094,26 +1186,26 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * See TODOs in ConstantVisitor
|
| */
|
| - static const CompileTimeErrorCode INVALID_CONSTANT = const CompileTimeErrorCode.con1('INVALID_CONSTANT', 88, "Invalid constant value");
|
| + static const CompileTimeErrorCode INVALID_CONSTANT = const CompileTimeErrorCode.con1('INVALID_CONSTANT', 87, "Invalid constant value");
|
|
|
| /**
|
| * 7.6 Constructors: It is a compile-time error if the name of a constructor is not a constructor
|
| * name.
|
| */
|
| - static const CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = const CompileTimeErrorCode.con1('INVALID_CONSTRUCTOR_NAME', 89, "Invalid constructor name");
|
| + static const CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = const CompileTimeErrorCode.con1('INVALID_CONSTRUCTOR_NAME', 88, "Invalid constructor name");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a compile-time error if <i>M</i> is not the name of the immediately
|
| * enclosing class.
|
| */
|
| - static const CompileTimeErrorCode INVALID_FACTORY_NAME_NOT_A_CLASS = const CompileTimeErrorCode.con1('INVALID_FACTORY_NAME_NOT_A_CLASS', 90, "The name of the immediately enclosing class expected");
|
| + static const CompileTimeErrorCode INVALID_FACTORY_NAME_NOT_A_CLASS = const CompileTimeErrorCode.con1('INVALID_FACTORY_NAME_NOT_A_CLASS', 89, "The name of the immediately enclosing class expected");
|
|
|
| /**
|
| * 12.10 This: It is a compile-time error if this appears in a top-level function or variable
|
| * initializer, in a factory constructor, or in a static method or variable initializer, or in the
|
| * initializer of an instance variable.
|
| */
|
| - static const CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = const CompileTimeErrorCode.con1('INVALID_REFERENCE_TO_THIS', 91, "Invalid reference to 'this' expression");
|
| + static const CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = const CompileTimeErrorCode.con1('INVALID_REFERENCE_TO_THIS', 90, "Invalid reference to 'this' expression");
|
|
|
| /**
|
| * 12.6 Lists: It is a compile time error if the type argument of a constant list literal includes
|
| @@ -1121,7 +1213,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @name the name of the type parameter
|
| */
|
| - static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = const CompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 92, "Constant list literals cannot include a type parameter as a type argument, such as '{0}'");
|
| + static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = const CompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 91, "Constant list literals cannot include a type parameter as a type argument, such as '{0}'");
|
|
|
| /**
|
| * 12.7 Maps: It is a compile time error if the type arguments of a constant map literal include a
|
| @@ -1129,7 +1221,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @name the name of the type parameter
|
| */
|
| - static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = const CompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 93, "Constant map literals cannot include a type parameter as a type argument, such as '{0}'");
|
| + static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = const CompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 92, "Constant map literals cannot include a type parameter as a type argument, such as '{0}'");
|
|
|
| /**
|
| * 14.2 Exports: It is a compile-time error if the compilation unit found at the specified URI is
|
| @@ -1144,7 +1236,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param uri the URI that is invalid
|
| * @see #URI_DOES_NOT_EXIST
|
| */
|
| - static const CompileTimeErrorCode INVALID_URI = const CompileTimeErrorCode.con1('INVALID_URI', 94, "Invalid URI syntax: '{0}'");
|
| + static const CompileTimeErrorCode INVALID_URI = const CompileTimeErrorCode.con1('INVALID_URI', 93, "Invalid URI syntax: '{0}'");
|
|
|
| /**
|
| * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</sub></i> exists within
|
| @@ -1155,7 +1247,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param labelName the name of the unresolvable label
|
| */
|
| - static const CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = const CompileTimeErrorCode.con1('LABEL_IN_OUTER_SCOPE', 95, "Cannot reference label '{0}' declared in an outer method");
|
| + static const CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = const CompileTimeErrorCode.con1('LABEL_IN_OUTER_SCOPE', 94, "Cannot reference label '{0}' declared in an outer method");
|
|
|
| /**
|
| * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</sub></i> exists within
|
| @@ -1166,55 +1258,13 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param labelName the name of the unresolvable label
|
| */
|
| - static const CompileTimeErrorCode LABEL_UNDEFINED = const CompileTimeErrorCode.con1('LABEL_UNDEFINED', 96, "Cannot reference undefined label '{0}'");
|
| -
|
| - /**
|
| - * 12.6 Lists: A run-time list literal <<i>E</i>> [<i>e<sub>1</sub></i> ...
|
| - * <i>e<sub>n</sub></i>] is evaluated as follows:
|
| - * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument
|
| - * <i>o<sub>i+1</sub></i><i>, 1 <= i <= n</i>
|
| - *
|
| - * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
|
| - * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 <= i <=
|
| - * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
|
| - * 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 CompileTimeErrorCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const CompileTimeErrorCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 97, "The element type '{0}' cannot be assigned to the list type '{1}'");
|
| -
|
| - /**
|
| - * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</sub></i> :
|
| - * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is evaluated as follows:
|
| - * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</sub></i> and second
|
| - * argument <i>e<sub>i</sub></i><i>, 1 <= i <= n</i>
|
| - *
|
| - * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
|
| - * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 <= i <=
|
| - * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
|
| - * 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 CompileTimeErrorCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const CompileTimeErrorCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 98, "The element type '{0}' cannot be assigned to the map key type '{1}'");
|
| -
|
| - /**
|
| - * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</sub></i> :
|
| - * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is evaluated as follows:
|
| - * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</sub></i> and second
|
| - * argument <i>e<sub>i</sub></i><i>, 1 <= i <= n</i>
|
| - *
|
| - * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
|
| - * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 <= i <=
|
| - * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
|
| - * 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 CompileTimeErrorCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const CompileTimeErrorCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 99, "The element type '{0}' cannot be assigned to the map value type '{1}'");
|
| + static const CompileTimeErrorCode LABEL_UNDEFINED = const CompileTimeErrorCode.con1('LABEL_UNDEFINED', 95, "Cannot reference undefined label '{0}'");
|
|
|
| /**
|
| * 7 Classes: It is a compile time error if a class <i>C</i> declares a member with the same name
|
| * as <i>C</i>.
|
| */
|
| - static const CompileTimeErrorCode MEMBER_WITH_CLASS_NAME = const CompileTimeErrorCode.con1('MEMBER_WITH_CLASS_NAME', 100, "Class members cannot have the same name as the enclosing class");
|
| + static const CompileTimeErrorCode MEMBER_WITH_CLASS_NAME = const CompileTimeErrorCode.con1('MEMBER_WITH_CLASS_NAME', 96, "Class members cannot have the same name as the enclosing class");
|
|
|
| /**
|
| * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same
|
| @@ -1222,17 +1272,17 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param name the conflicting name of the getter and method
|
| */
|
| - static const CompileTimeErrorCode METHOD_AND_GETTER_WITH_SAME_NAME = const CompileTimeErrorCode.con1('METHOD_AND_GETTER_WITH_SAME_NAME', 101, "'{0}' cannot be used to name a method, there is already a getter with the same name");
|
| + static const CompileTimeErrorCode METHOD_AND_GETTER_WITH_SAME_NAME = const CompileTimeErrorCode.con1('METHOD_AND_GETTER_WITH_SAME_NAME', 97, "'{0}' cannot be used to name a method, there is already a getter with the same name");
|
|
|
| /**
|
| * 12.1 Constants: A constant expression is ... a constant list literal.
|
| */
|
| - static const CompileTimeErrorCode MISSING_CONST_IN_LIST_LITERAL = const CompileTimeErrorCode.con1('MISSING_CONST_IN_LIST_LITERAL', 102, "List literals must be prefixed with 'const' when used as a constant expression");
|
| + static const CompileTimeErrorCode MISSING_CONST_IN_LIST_LITERAL = const CompileTimeErrorCode.con1('MISSING_CONST_IN_LIST_LITERAL', 98, "List literals must be prefixed with 'const' when used as a constant expression");
|
|
|
| /**
|
| * 12.1 Constants: A constant expression is ... a constant map literal.
|
| */
|
| - static const CompileTimeErrorCode MISSING_CONST_IN_MAP_LITERAL = const CompileTimeErrorCode.con1('MISSING_CONST_IN_MAP_LITERAL', 103, "Map literals must be prefixed with 'const' when used as a constant expression");
|
| + static const CompileTimeErrorCode MISSING_CONST_IN_MAP_LITERAL = const CompileTimeErrorCode.con1('MISSING_CONST_IN_MAP_LITERAL', 99, "Map literals must be prefixed with 'const' when used as a constant expression");
|
|
|
| /**
|
| * Enum proposal: It is a static warning if all of the following conditions hold:
|
| @@ -1244,7 +1294,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param constantName the name of the constant that is missing
|
| */
|
| - static const CompileTimeErrorCode MISSING_ENUM_CONSTANT_IN_SWITCH = const CompileTimeErrorCode.con2('MISSING_ENUM_CONSTANT_IN_SWITCH', 104, "Missing case clause for '{0}'", "Add a case clause for the missing constant or add a default clause.");
|
| + static const CompileTimeErrorCode MISSING_ENUM_CONSTANT_IN_SWITCH = const CompileTimeErrorCode.con2('MISSING_ENUM_CONSTANT_IN_SWITCH', 100, "Missing case clause for '{0}'", "Add a case clause for the missing constant or add a default clause.");
|
|
|
| /**
|
| * 9 Mixins: It is a compile-time error if a declared or derived mixin explicitly declares a
|
| @@ -1252,7 +1302,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param typeName the name of the mixin that is invalid
|
| */
|
| - static const CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = const CompileTimeErrorCode.con1('MIXIN_DECLARES_CONSTRUCTOR', 105, "The class '{0}' cannot be used as a mixin because it declares a constructor");
|
| + static const CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = const CompileTimeErrorCode.con1('MIXIN_DECLARES_CONSTRUCTOR', 101, "The class '{0}' cannot be used as a mixin because it declares a constructor");
|
|
|
| /**
|
| * 9.1 Mixin Application: It is a compile-time error if the with clause of a mixin application
|
| @@ -1262,7 +1312,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @see #EXTENDS_DEFERRED_CLASS
|
| * @see #IMPLEMENTS_DEFERRED_CLASS
|
| */
|
| - static const CompileTimeErrorCode MIXIN_DEFERRED_CLASS = const CompileTimeErrorCode.con1('MIXIN_DEFERRED_CLASS', 106, "This class cannot mixin the deferred class '{0}'");
|
| + static const CompileTimeErrorCode MIXIN_DEFERRED_CLASS = const CompileTimeErrorCode.con1('MIXIN_DEFERRED_CLASS', 102, "This class cannot mixin the deferred class '{0}'");
|
|
|
| /**
|
| * 9 Mixins: It is a compile-time error if a mixin is derived from a class whose superclass is not
|
| @@ -1270,7 +1320,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param typeName the name of the mixin that is invalid
|
| */
|
| - static const CompileTimeErrorCode MIXIN_INHERITS_FROM_NOT_OBJECT = const CompileTimeErrorCode.con1('MIXIN_INHERITS_FROM_NOT_OBJECT', 107, "The class '{0}' cannot be used as a mixin because it extends a class other than Object");
|
| + static const CompileTimeErrorCode MIXIN_INHERITS_FROM_NOT_OBJECT = const CompileTimeErrorCode.con1('MIXIN_INHERITS_FROM_NOT_OBJECT', 103, "The class '{0}' cannot be used as a mixin because it extends a class other than Object");
|
|
|
| /**
|
| * 12.2 Null: It is a compile-time error for a class to attempt to extend or implement Null.
|
| @@ -1289,48 +1339,48 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * @param typeName the name of the type that cannot be extended
|
| * @see #IMPLEMENTS_DISALLOWED_CLASS
|
| */
|
| - static const CompileTimeErrorCode MIXIN_OF_DISALLOWED_CLASS = const CompileTimeErrorCode.con1('MIXIN_OF_DISALLOWED_CLASS', 108, "Classes cannot mixin '{0}'");
|
| + static const CompileTimeErrorCode MIXIN_OF_DISALLOWED_CLASS = const CompileTimeErrorCode.con1('MIXIN_OF_DISALLOWED_CLASS', 104, "Classes cannot mixin '{0}'");
|
|
|
| /**
|
| * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum.
|
| */
|
| - static const CompileTimeErrorCode MIXIN_OF_ENUM = const CompileTimeErrorCode.con1('MIXIN_OF_ENUM', 109, "Classes cannot mixin an enum");
|
| + static const CompileTimeErrorCode MIXIN_OF_ENUM = const CompileTimeErrorCode.con1('MIXIN_OF_ENUM', 105, "Classes cannot mixin an enum");
|
|
|
| /**
|
| * 9.1 Mixin Application: It is a compile-time error if <i>M</i> does not denote a class or mixin
|
| * available in the immediately enclosing scope.
|
| */
|
| - static const CompileTimeErrorCode MIXIN_OF_NON_CLASS = const CompileTimeErrorCode.con1('MIXIN_OF_NON_CLASS', 110, "Classes can only mixin other classes");
|
| + static const CompileTimeErrorCode MIXIN_OF_NON_CLASS = const CompileTimeErrorCode.con1('MIXIN_OF_NON_CLASS', 106, "Classes can only mixin other classes");
|
|
|
| /**
|
| * 9 Mixins: It is a compile-time error if a declared or derived mixin refers to super.
|
| */
|
| - static const CompileTimeErrorCode MIXIN_REFERENCES_SUPER = const CompileTimeErrorCode.con1('MIXIN_REFERENCES_SUPER', 111, "The class '{0}' cannot be used as a mixin because it references 'super'");
|
| + static const CompileTimeErrorCode MIXIN_REFERENCES_SUPER = const CompileTimeErrorCode.con1('MIXIN_REFERENCES_SUPER', 107, "The class '{0}' cannot be used as a mixin because it references 'super'");
|
|
|
| /**
|
| * 9.1 Mixin Application: It is a compile-time error if <i>S</i> does not denote a class available
|
| * in the immediately enclosing scope.
|
| */
|
| - static const CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = const CompileTimeErrorCode.con1('MIXIN_WITH_NON_CLASS_SUPERCLASS', 112, "Mixin can only be applied to class");
|
| + static const CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = const CompileTimeErrorCode.con1('MIXIN_WITH_NON_CLASS_SUPERCLASS', 108, "Mixin can only be applied to class");
|
|
|
| /**
|
| * 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 MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS = const CompileTimeErrorCode.con1('MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS', 113, "Constructor may have at most one 'this' redirection");
|
| + static const CompileTimeErrorCode MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS = const CompileTimeErrorCode.con1('MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS', 109, "Constructor may have at most one 'this' redirection");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Then <i>k</i> may
|
| * include at most one superinitializer in its initializer list or a compile time error occurs.
|
| */
|
| - static const CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = const CompileTimeErrorCode.con1('MULTIPLE_SUPER_INITIALIZERS', 114, "Constructor may have at most one 'super' initializer");
|
| + static const CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = const CompileTimeErrorCode.con1('MULTIPLE_SUPER_INITIALIZERS', 110, "Constructor may have at most one 'super' initializer");
|
|
|
| /**
|
| * 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.
|
| */
|
| - static const CompileTimeErrorCode NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS = const CompileTimeErrorCode.con1('NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS', 115, "Annotation creation must have arguments");
|
| + static const CompileTimeErrorCode NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS = const CompileTimeErrorCode.con1('NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS', 111, "Annotation creation must have arguments");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: If no superinitializer is provided, an implicit superinitializer
|
| @@ -1340,7 +1390,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 7.6.1 Generative constructors. It is 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 NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT = const CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT', 116, "The class '{0}' does not have a default constructor");
|
| + static const CompileTimeErrorCode NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT = const CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT', 112, "The class '{0}' does not have a default constructor");
|
|
|
| /**
|
| * 7.6 Constructors: Iff no constructor is specified for a class <i>C</i>, it implicitly has a
|
| @@ -1349,13 +1399,13 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 7.6.1 Generative constructors. It is 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 NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT = const CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT', 117, "The class '{0}' does not have a default constructor");
|
| + static const CompileTimeErrorCode NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT = const CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT', 113, "The class '{0}' does not have a default constructor");
|
|
|
| /**
|
| * 13.2 Expression Statements: It is a compile-time error if a non-constant map literal that has
|
| * no explicit type arguments appears in a place where a statement is expected.
|
| */
|
| - static const CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = const CompileTimeErrorCode.con1('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 118, "A non-constant map literal without type arguments cannot be used as an expression statement");
|
| + static const CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = const CompileTimeErrorCode.con1('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 114, "A non-constant map literal without type arguments cannot be used as an expression statement");
|
|
|
| /**
|
| * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub>11</sub> …
|
| @@ -1366,7 +1416,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 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>.
|
| */
|
| - static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION', 119, "Case expressions must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION', 115, "Case expressions must be constant");
|
|
|
| /**
|
| * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub>11</sub> …
|
| @@ -1380,13 +1430,13 @@ 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_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY', 120, "Constant values from a deferred library cannot be used as a case expression");
|
| + static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY', 116, "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', 121, "Default values of an optional parameter must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE', 117, "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
|
| @@ -1395,13 +1445,13 @@ 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', 122, "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', 118, "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', 123, "'const' lists must have all constant values");
|
| + static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT', 119, "'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
|
| @@ -1410,13 +1460,13 @@ 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_LIST_ELEMENT_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY', 124, "Constant values from a deferred library cannot be used as values in a 'const' list");
|
| + static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY', 120, "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', 125, "The keys in a map must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY', 121, "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
|
| @@ -1425,13 +1475,13 @@ 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_MAP_KEY_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY', 126, "Constant values from a deferred library cannot be used as keys in a map");
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY', 122, "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', 127, "The values in a 'const' map must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE', 123, "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
|
| @@ -1440,7 +1490,7 @@ 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_MAP_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY', 128, "Constant values from a deferred library cannot be used as values in a 'const' map");
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY', 124, "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
|
| @@ -1450,13 +1500,13 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * "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', 129, "Annotation creation can use only 'const' constructor");
|
| + static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', 125, "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', 130, "Initializer expressions in constant constructors must be constants");
|
| + static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER', 126, "Initializer expressions in constant constructors must be constants");
|
|
|
| /**
|
| * 7.6.3 Constant Constructors: Any expression that appears within the initializer list of a
|
| @@ -1465,7 +1515,7 @@ 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_VALUE_IN_INITIALIZER_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFERRED_LIBRARY', 131, "Constant values from a deferred library cannot be used as constant initializers");
|
| + static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFERRED_LIBRARY', 127, "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>.
|
| @@ -1476,7 +1526,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', 132, "{0} required argument(s) expected, but {1} found");
|
| + static const CompileTimeErrorCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const CompileTimeErrorCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 128, "{0} required argument(s) expected, but {1} found");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1484,17 +1534,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', 133, "The generative constructor '{0}' expected, but factory found");
|
| + static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_GENERATIVE_CONSTRUCTOR', 129, "The generative constructor '{0}' 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', 134, "");
|
| + static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const CompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 130, "");
|
|
|
| /**
|
| * 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', 135, "Optional parameters are not allowed when defining an operator");
|
| + static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = const CompileTimeErrorCode.con1('OPTIONAL_PARAMETER_IN_OPERATOR', 131, "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
|
| @@ -1502,25 +1552,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', 136, "The included part '{0}' must have a part-of directive");
|
| + static const CompileTimeErrorCode PART_OF_NON_PART = const CompileTimeErrorCode.con1('PART_OF_NON_PART', 132, "The included part '{0}' 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', 137, "The name '{0}' 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', 133, "The name '{0}' 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', 138, "Named optional parameters cannot start with an underscore");
|
| + static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTimeErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 134, "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', 139, "");
|
| + static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = const CompileTimeErrorCode.con1('RECURSIVE_COMPILE_TIME_CONSTANT', 135, "");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
|
| @@ -1531,13 +1581,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', 140, "Cycle in redirecting generative constructors");
|
| + static const CompileTimeErrorCode RECURSIVE_CONSTRUCTOR_REDIRECT = const CompileTimeErrorCode.con1('RECURSIVE_CONSTRUCTOR_REDIRECT', 136, "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', 141, "Cycle in redirecting factory constructors");
|
| + static const CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = const CompileTimeErrorCode.con1('RECURSIVE_FACTORY_REDIRECT', 137, "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
|
| @@ -1550,7 +1600,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', 142, "'{0}' cannot be a superinterface of itself: {1}");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE', 138, "'{0}' cannot be a superinterface of itself: {1}");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1562,7 +1612,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', 143, "'{0}' cannot extend itself");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS', 139, "'{0}' cannot extend itself");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1574,7 +1624,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_IMPLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS', 144, "'{0}' cannot implement itself");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS', 140, "'{0}' cannot implement itself");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1586,67 +1636,67 @@ 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_WITH = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH', 145, "'{0}' cannot use itself as a mixin");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH', 141, "'{0}' cannot use itself as a mixin");
|
|
|
| /**
|
| * 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', 146, "The constructor '{0}' could not be found in '{1}'");
|
| + static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 142, "The constructor '{0}' could not be found in '{1}'");
|
|
|
| /**
|
| * 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', 147, "The name '{0}' 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', 143, "The name '{0}' 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', 148, "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', 144, "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', 149, "The constructor '{0}' could not be found in '{1}'");
|
| + static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', 145, "The constructor '{0}' could not be found in '{1}'");
|
|
|
| /**
|
| * 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', 150, "Generative constructor cannot redirect to a factory constructor");
|
| + static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR', 146, "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', 151, "Local variables cannot be referenced before they are declared");
|
| + static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const CompileTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 147, "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', 152, "rethrow must be inside of a catch clause");
|
| + static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErrorCode.con1('RETHROW_OUTSIDE_CATCH', 148, "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', 153, "Constructors cannot return a value");
|
| + static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 149, "Constructors cannot return a value");
|
|
|
| /**
|
| * 13.12 Return: It is a compile-time error if a return statement of the form <i>return e;</i>
|
| * appears in a generator function.
|
| */
|
| - static const CompileTimeErrorCode RETURN_IN_GENERATOR = const CompileTimeErrorCode.con1('RETURN_IN_GENERATOR', 154, "Cannot return a value from a generator function (one marked with either 'async*' or 'sync*')");
|
| + static const CompileTimeErrorCode RETURN_IN_GENERATOR = const CompileTimeErrorCode.con1('RETURN_IN_GENERATOR', 150, "Cannot return a value from a generator function (one marked with either 'async*' or 'sync*')");
|
|
|
| /**
|
| * 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', 155, "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', 151, "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
|
| @@ -1656,19 +1706,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', 156, "Invalid context for 'super' invocation");
|
| + static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTimeErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 152, "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', 157, "The redirecting constructor cannot have a 'super' initializer");
|
| + static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const CompileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 153, "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', 158, "");
|
| + static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileTimeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 154, "");
|
|
|
| /**
|
| * 12.11 Instance Creation: It is a static type warning if any of the type arguments to a
|
| @@ -1687,19 +1737,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', 159, "'{0}' does not extend '{1}'");
|
| + static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const CompileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 155, "'{0}' does not extend '{1}'");
|
|
|
| /**
|
| * 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', 160, "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', 156, "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', 161, "Undefined class '{0}'");
|
| + static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode.con1('UNDEFINED_CLASS', 157, "Undefined class '{0}'");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1707,7 +1757,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', 162, "The class '{0}' does not have a generative constructor '{1}'");
|
| + static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 158, "The class '{0}' does not have a generative constructor '{1}'");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1715,7 +1765,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', 163, "The class '{0}' does not have a default generative constructor");
|
| + static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT', 159, "The class '{0}' 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>,
|
| @@ -1727,7 +1777,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', 164, "The named parameter '{0}' is not defined");
|
| + static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTimeErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 160, "The named parameter '{0}' is not defined");
|
|
|
| /**
|
| * 14.2 Exports: It is a compile-time error if the compilation unit found at the specified URI is
|
| @@ -1742,7 +1792,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', 165, "Target of URI does not exist: '{0}'");
|
| + static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorCode.con1('URI_DOES_NOT_EXIST', 161, "Target of URI does not exist: '{0}'");
|
|
|
| /**
|
| * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if
|
| @@ -1754,7 +1804,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', 166, "URIs cannot use string interpolation");
|
| + static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeErrorCode.con1('URI_WITH_INTERPOLATION', 162, "URIs cannot use string interpolation");
|
|
|
| /**
|
| * 7.1.1 Operators: It is a compile-time error if the arity of the user-declared operator []= is
|
| @@ -1767,7 +1817,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', 167, "Operator '{0}' should declare exactly {1} parameter(s), but {2} found");
|
| + static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 163, "Operator '{0}' should declare exactly {1} parameter(s), but {2} found");
|
|
|
| /**
|
| * 7.1.1 Operators: It is a compile time error if the arity of the user-declared operator - is not
|
| @@ -1775,25 +1825,25 @@ 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', 168, "Operator '-' should declare 0 or 1 parameter, but {0} found");
|
| + static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS', 164, "Operator '-' should declare 0 or 1 parameter, but {0} 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', 169, "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', 165, "Setters should declare exactly one required parameter");
|
|
|
| /**
|
| * ?? Yield: It is a compile-time error if a yield statement appears in a function that is not a
|
| * generator function.
|
| */
|
| - static const CompileTimeErrorCode YIELD_EACH_IN_NON_GENERATOR = const CompileTimeErrorCode.con1('YIELD_EACH_IN_NON_GENERATOR', 170, "Yield-each statements must be in a generator function (one marked with either 'async*' or 'sync*')");
|
| + static const CompileTimeErrorCode YIELD_EACH_IN_NON_GENERATOR = const CompileTimeErrorCode.con1('YIELD_EACH_IN_NON_GENERATOR', 166, "Yield-each statements must be in a generator function (one marked with either 'async*' or 'sync*')");
|
|
|
| /**
|
| * ?? Yield: It is a compile-time error if a yield statement appears in a function that is not a
|
| * generator function.
|
| */
|
| - static const CompileTimeErrorCode YIELD_IN_NON_GENERATOR = const CompileTimeErrorCode.con1('YIELD_IN_NON_GENERATOR', 171, "Yield statements must be in a generator function (one marked with either 'async*' or 'sync*')");
|
| + static const CompileTimeErrorCode YIELD_IN_NON_GENERATOR = const CompileTimeErrorCode.con1('YIELD_IN_NON_GENERATOR', 167, "Yield statements must be in a generator function (one marked with either 'async*' or 'sync*')");
|
|
|
| static const List<CompileTimeErrorCode> values = const [
|
| ACCESS_PRIVATE_ENUM_FIELD,
|
| @@ -1819,7 +1869,6 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER,
|
| CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD,
|
| CONST_DEFERRED_CLASS,
|
| - CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE,
|
| CONST_FORMAL_PARAMETER,
|
| CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE,
|
| CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY,
|
| @@ -1893,9 +1942,6 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| INVALID_URI,
|
| LABEL_IN_OUTER_SCOPE,
|
| LABEL_UNDEFINED,
|
| - LIST_ELEMENT_TYPE_NOT_ASSIGNABLE,
|
| - MAP_KEY_TYPE_NOT_ASSIGNABLE,
|
| - MAP_VALUE_TYPE_NOT_ASSIGNABLE,
|
| MEMBER_WITH_CLASS_NAME,
|
| METHOD_AND_GETTER_WITH_SAME_NAME,
|
| MISSING_CONST_IN_LIST_LITERAL,
|
| @@ -2104,6 +2150,8 @@ class ErrorReporter {
|
| this._source = _defaultSource;
|
| }
|
|
|
| + Source get source => _source;
|
| +
|
| /**
|
| * Creates an error with properties with the given error code and arguments.
|
| *
|
| @@ -2331,42 +2379,48 @@ class ErrorType extends Enum<ErrorType> {
|
| static const ErrorType COMPILE_TIME_ERROR = const ErrorType('COMPILE_TIME_ERROR', 2, ErrorSeverity.ERROR);
|
|
|
| /**
|
| + * Checked mode compile-time errors are errors that preclude execution in checked mode.
|
| + */
|
| + static const ErrorType CHECKED_MODE_COMPILE_TIME_ERROR = const ErrorType('CHECKED_MODE_COMPILE_TIME_ERROR', 3, ErrorSeverity.INFO);
|
| +
|
| + /**
|
| * Suggestions made in situations where the user has deviated from recommended pub programming
|
| * practices.
|
| */
|
| - static const ErrorType PUB_SUGGESTION = const ErrorType('PUB_SUGGESTION', 3, ErrorSeverity.WARNING);
|
| + static const ErrorType PUB_SUGGESTION = const ErrorType('PUB_SUGGESTION', 4, ErrorSeverity.WARNING);
|
|
|
| /**
|
| * Static warnings are those warnings reported by the static checker. They have no effect on
|
| * execution. Static warnings must be provided by Dart compilers used during development.
|
| */
|
| - static const ErrorType STATIC_WARNING = const ErrorType('STATIC_WARNING', 4, ErrorSeverity.WARNING);
|
| + static const ErrorType STATIC_WARNING = const ErrorType('STATIC_WARNING', 5, ErrorSeverity.WARNING);
|
|
|
| /**
|
| * Many, but not all, static warnings relate to types, in which case they are known as static type
|
| * warnings.
|
| */
|
| - static const ErrorType STATIC_TYPE_WARNING = const ErrorType('STATIC_TYPE_WARNING', 5, ErrorSeverity.WARNING);
|
| + static const ErrorType STATIC_TYPE_WARNING = const ErrorType('STATIC_TYPE_WARNING', 6, ErrorSeverity.WARNING);
|
|
|
| /**
|
| * Syntactic errors are errors produced as a result of input that does not conform to the grammar.
|
| */
|
| - static const ErrorType SYNTACTIC_ERROR = const ErrorType('SYNTACTIC_ERROR', 6, ErrorSeverity.ERROR);
|
| + static const ErrorType SYNTACTIC_ERROR = const ErrorType('SYNTACTIC_ERROR', 7, ErrorSeverity.ERROR);
|
|
|
| /**
|
| * Angular specific semantic problems.
|
| */
|
| - static const ErrorType ANGULAR = const ErrorType('ANGULAR', 7, ErrorSeverity.INFO);
|
| + static const ErrorType ANGULAR = const ErrorType('ANGULAR', 8, ErrorSeverity.INFO);
|
|
|
| /**
|
| * Polymer specific semantic problems.
|
| */
|
| - static const ErrorType POLYMER = const ErrorType('POLYMER', 8, ErrorSeverity.INFO);
|
| + static const ErrorType POLYMER = const ErrorType('POLYMER', 9, ErrorSeverity.INFO);
|
|
|
| static const List<ErrorType> values = const [
|
| TODO,
|
| HINT,
|
| COMPILE_TIME_ERROR,
|
| + CHECKED_MODE_COMPILE_TIME_ERROR,
|
| PUB_SUGGESTION,
|
| STATIC_WARNING,
|
| STATIC_TYPE_WARNING,
|
|
|