| 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 e92f2ae4a7b40d1c34d7e266aaac140c29558c96..364158d421b728c5689aa770b67c097bee4f441f 100644
|
| --- a/pkg/analyzer/lib/src/generated/error.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error.dart
|
| @@ -7,11 +7,12 @@
|
|
|
| library engine.error;
|
|
|
| +import 'dart:collection';
|
| import 'java_core.dart';
|
| import 'source.dart';
|
| import 'scanner.dart' show Token;
|
| import 'ast.dart' show AstNode;
|
| -import 'element.dart' show Element;
|
| +import 'element.dart';
|
|
|
| /**
|
| * Instances of the class `AnalysisError` represent an error discovered during the analysis of
|
| @@ -244,7 +245,7 @@ class AnalysisErrorWithProperties extends AnalysisError {
|
| /**
|
| * The properties associated with this error.
|
| */
|
| - Map<ErrorProperty, Object> _propertyMap = new Map<ErrorProperty, Object>();
|
| + HashMap<ErrorProperty, Object> _propertyMap = new HashMap<ErrorProperty, Object>();
|
|
|
| /**
|
| * Initialize a newly created analysis error for the specified source. The error has no location
|
| @@ -353,6 +354,9 @@ class AngularCode extends Enum<AngularCode> implements ErrorCode {
|
|
|
| @override
|
| ErrorType get type => ErrorType.ANGULAR;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
| @@ -1000,14 +1004,20 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 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', 74, "Instance member cannot be accessed from static method");
|
| + static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_FACTORY = const CompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_FACTORY', 74, "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', 75, "Instance members cannot be accessed from a static method");
|
|
|
| /**
|
| * 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', 75, "Annotation can be only constant variable or constant constructor invocation");
|
| + static const CompileTimeErrorCode INVALID_ANNOTATION = const CompileTimeErrorCode.con1('INVALID_ANNOTATION', 76, "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
|
| @@ -1017,7 +1027,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 INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY', 76, "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', 77, "Constant values from a deferred library cannot be used as annotations");
|
|
|
| /**
|
| * TODO(brianwilkerson) Remove this when we have decided on how to report errors in compile-time
|
| @@ -1025,26 +1035,26 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * See TODOs in ConstantVisitor
|
| */
|
| - static const CompileTimeErrorCode INVALID_CONSTANT = const CompileTimeErrorCode.con1('INVALID_CONSTANT', 77, "Invalid constant value");
|
| + static const CompileTimeErrorCode INVALID_CONSTANT = const CompileTimeErrorCode.con1('INVALID_CONSTANT', 78, "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', 78, "Invalid constructor name");
|
| + static const CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = const CompileTimeErrorCode.con1('INVALID_CONSTRUCTOR_NAME', 79, "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', 79, "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', 80, "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', 80, "Invalid reference to 'this' expression");
|
| + static const CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = const CompileTimeErrorCode.con1('INVALID_REFERENCE_TO_THIS', 81, "Invalid reference to 'this' expression");
|
|
|
| /**
|
| * 12.6 Lists: It is a compile time error if the type argument of a constant list literal includes
|
| @@ -1052,7 +1062,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', 81, "Constant list literals cannot include a type parameter as a type argument, such as '%s'");
|
| + static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = const CompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 82, "Constant list literals cannot include a type parameter as a type argument, such as '%s'");
|
|
|
| /**
|
| * 12.7 Maps: It is a compile time error if the type arguments of a constant map literal include a
|
| @@ -1060,7 +1070,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', 82, "Constant map literals cannot include a type parameter as a type argument, such as '%s'");
|
| + static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = const CompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 83, "Constant map literals cannot include a type parameter as a type argument, such as '%s'");
|
|
|
| /**
|
| * 14.2 Exports: It is a compile-time error if the compilation unit found at the specified URI is
|
| @@ -1075,7 +1085,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', 83, "Invalid URI syntax: '%s'");
|
| + static const CompileTimeErrorCode INVALID_URI = const CompileTimeErrorCode.con1('INVALID_URI', 84, "Invalid URI syntax: '%s'");
|
|
|
| /**
|
| * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</sub></i> exists within
|
| @@ -1086,7 +1096,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', 84, "Cannot reference label '%s' declared in an outer method");
|
| + static const CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = const CompileTimeErrorCode.con1('LABEL_IN_OUTER_SCOPE', 85, "Cannot reference label '%s' 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
|
| @@ -1097,7 +1107,7 @@ 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', 85, "Cannot reference undefined label '%s'");
|
| + static const CompileTimeErrorCode LABEL_UNDEFINED = const CompileTimeErrorCode.con1('LABEL_UNDEFINED', 86, "Cannot reference undefined label '%s'");
|
|
|
| /**
|
| * 12.6 Lists: A run-time list literal <<i>E</i>> [<i>e<sub>1</sub></i> ...
|
| @@ -1111,7 +1121,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 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', 86, "The element type '%s' cannot be assigned to the list type '%s'");
|
| + static const CompileTimeErrorCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const CompileTimeErrorCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 87, "The element type '%s' cannot be assigned to the list type '%s'");
|
|
|
| /**
|
| * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</sub></i> :
|
| @@ -1125,7 +1135,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 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', 87, "The element type '%s' cannot be assigned to the map key type '%s'");
|
| + static const CompileTimeErrorCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const CompileTimeErrorCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 88, "The element type '%s' cannot be assigned to the map key type '%s'");
|
|
|
| /**
|
| * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</sub></i> :
|
| @@ -1139,13 +1149,13 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| * 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', 88, "The element type '%s' cannot be assigned to the map value type '%s'");
|
| + static const CompileTimeErrorCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const CompileTimeErrorCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 89, "The element type '%s' cannot be assigned to the map value type '%s'");
|
|
|
| /**
|
| * 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', 89, "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', 90, "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
|
| @@ -1153,17 +1163,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', 90, "'%s' 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', 91, "'%s' 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', 91, "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', 92, "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', 92, "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', 93, "Map literals must be prefixed with 'const' when used as a constant expression");
|
|
|
| /**
|
| * 9 Mixins: It is a compile-time error if a declared or derived mixin explicitly declares a
|
| @@ -1171,7 +1181,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', 93, "The class '%s' cannot be used as a mixin because it declares a constructor");
|
| + static const CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = const CompileTimeErrorCode.con1('MIXIN_DECLARES_CONSTRUCTOR', 94, "The class '%s' 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
|
| @@ -1181,7 +1191,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', 94, "This class cannot mixin the deferred class '%s'");
|
| + static const CompileTimeErrorCode MIXIN_DEFERRED_CLASS = const CompileTimeErrorCode.con1('MIXIN_DEFERRED_CLASS', 95, "This class cannot mixin the deferred class '%s'");
|
|
|
| /**
|
| * 9 Mixins: It is a compile-time error if a mixin is derived from a class whose superclass is not
|
| @@ -1189,7 +1199,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', 95, "The class '%s' 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', 96, "The class '%s' 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.
|
| @@ -1208,43 +1218,43 @@ 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', 96, "Classes cannot mixin '%s'");
|
| + static const CompileTimeErrorCode MIXIN_OF_DISALLOWED_CLASS = const CompileTimeErrorCode.con1('MIXIN_OF_DISALLOWED_CLASS', 97, "Classes cannot mixin '%s'");
|
|
|
| /**
|
| * 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', 97, "Classes can only mixin other classes");
|
| + static const CompileTimeErrorCode MIXIN_OF_NON_CLASS = const CompileTimeErrorCode.con1('MIXIN_OF_NON_CLASS', 98, "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', 98, "The class '%s' cannot be used as a mixin because it references 'super'");
|
| + static const CompileTimeErrorCode MIXIN_REFERENCES_SUPER = const CompileTimeErrorCode.con1('MIXIN_REFERENCES_SUPER', 99, "The class '%s' 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', 99, "Mixin can only be applied to class");
|
| + static const CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = const CompileTimeErrorCode.con1('MIXIN_WITH_NON_CLASS_SUPERCLASS', 100, "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', 100, "Constructor may have at most one 'this' redirection");
|
| + static const CompileTimeErrorCode MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS = const CompileTimeErrorCode.con1('MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS', 101, "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', 101, "Constructor may have at most one 'super' initializer");
|
| + static const CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = const CompileTimeErrorCode.con1('MULTIPLE_SUPER_INITIALIZERS', 102, "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', 102, "Annotation creation must have arguments");
|
| + static const CompileTimeErrorCode NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS = const CompileTimeErrorCode.con1('NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS', 103, "Annotation creation must have arguments");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: If no superinitializer is provided, an implicit superinitializer
|
| @@ -1254,7 +1264,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', 103, "The class '%s' does not have a default constructor");
|
| + static const CompileTimeErrorCode NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT = const CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT', 104, "The class '%s' does not have a default constructor");
|
|
|
| /**
|
| * 7.6 Constructors: Iff no constructor is specified for a class <i>C</i>, it implicitly has a
|
| @@ -1263,13 +1273,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', 104, "The class '%s' does not have a default constructor");
|
| + static const CompileTimeErrorCode NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT = const CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT', 105, "The class '%s' 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', 105, "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', 106, "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> …
|
| @@ -1280,7 +1290,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', 106, "Case expressions must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION', 107, "Case expressions must be constant");
|
|
|
| /**
|
| * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub>11</sub> …
|
| @@ -1294,13 +1304,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', 107, "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', 108, "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', 108, "Default values of an optional parameter must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE', 109, "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
|
| @@ -1309,13 +1319,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', 109, "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', 110, "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', 110, "'const' lists must have all constant values");
|
| + static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT', 111, "'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
|
| @@ -1324,13 +1334,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', 111, "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', 112, "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', 112, "The keys in a map must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY', 113, "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
|
| @@ -1339,13 +1349,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', 113, "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', 114, "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', 114, "The values in a 'const' map must be constant");
|
| + static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE', 115, "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
|
| @@ -1354,7 +1364,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', 115, "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', 116, "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
|
| @@ -1364,13 +1374,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', 116, "Annotation creation can use only 'const' constructor");
|
| + static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', 117, "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', 117, "Initializer expressions in constant constructors must be constants");
|
| + static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER', 118, "Initializer expressions in constant constructors must be constants");
|
|
|
| /**
|
| * 7.6.3 Constant Constructors: Any expression that appears within the initializer list of a
|
| @@ -1379,7 +1389,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', 118, "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', 119, "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>.
|
| @@ -1390,7 +1400,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', 119, "%d required argument(s) expected, but %d found");
|
| + static const CompileTimeErrorCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const CompileTimeErrorCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 120, "%d required argument(s) expected, but %d found");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1398,17 +1408,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', 120, "The generative constructor '%s' expected, but factory found");
|
| + static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_GENERATIVE_CONSTRUCTOR', 121, "The generative constructor '%s' expected, but factory found");
|
|
|
| /**
|
| * 7.9 Superclasses: It is a compile-time error to specify an extends clause for class Object.
|
| */
|
| - static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const CompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 121, "");
|
| + static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const CompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 122, "");
|
|
|
| /**
|
| * 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', 122, "Optional parameters are not allowed when defining an operator");
|
| + static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = const CompileTimeErrorCode.con1('OPTIONAL_PARAMETER_IN_OPERATOR', 123, "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
|
| @@ -1416,25 +1426,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', 123, "The included part '%s' must have a part-of directive");
|
| + static const CompileTimeErrorCode PART_OF_NON_PART = const CompileTimeErrorCode.con1('PART_OF_NON_PART', 124, "The included part '%s' must have a part-of directive");
|
|
|
| /**
|
| * 14.1 Imports: It is a compile-time error if the current library declares a top-level member
|
| * named <i>p</i>.
|
| */
|
| - static const CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = const CompileTimeErrorCode.con1('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 124, "The name '%s' is already used as an import prefix and cannot be used to name a top-level element");
|
| + static const CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = const CompileTimeErrorCode.con1('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 125, "The name '%s' is already used as an import prefix and cannot be used to name a top-level element");
|
|
|
| /**
|
| * 6.2.2 Optional Formals: It is a compile-time error if the name of a named optional parameter
|
| * begins with an '_' character.
|
| */
|
| - static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTimeErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 125, "Named optional parameters cannot start with an underscore");
|
| + static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTimeErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 126, "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', 126, "");
|
| + static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = const CompileTimeErrorCode.con1('RECURSIVE_COMPILE_TIME_CONSTANT', 127, "");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
|
| @@ -1445,13 +1455,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', 127, "Cycle in redirecting generative constructors");
|
| + static const CompileTimeErrorCode RECURSIVE_CONSTRUCTOR_REDIRECT = const CompileTimeErrorCode.con1('RECURSIVE_CONSTRUCTOR_REDIRECT', 128, "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', 128, "Cycle in redirecting factory constructors");
|
| + static const CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = const CompileTimeErrorCode.con1('RECURSIVE_FACTORY_REDIRECT', 129, "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
|
| @@ -1464,7 +1474,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', 129, "'%s' cannot be a superinterface of itself: %s");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE', 130, "'%s' cannot be a superinterface of itself: %s");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1476,7 +1486,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', 130, "'%s' cannot extend itself");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS', 131, "'%s' cannot extend itself");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1488,7 +1498,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', 131, "'%s' cannot implement itself");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS', 132, "'%s' cannot implement itself");
|
|
|
| /**
|
| * 7.10 Superinterfaces: It is a compile-time error if the interface of a class <i>C</i> is a
|
| @@ -1500,61 +1510,61 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param className the name of the class that implements itself recursively
|
| */
|
| - static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH', 132, "'%s' cannot use itself as a mixin");
|
| + static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH', 133, "'%s' 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', 133, "The constructor '%s' could not be found in '%s'");
|
| + static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 134, "The constructor '%s' could not be found in '%s'");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with the const modifier but
|
| * <i>k'</i> is not a constant constructor.
|
| */
|
| - static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErrorCode.con1('REDIRECT_TO_NON_CLASS', 134, "The name '%s' is not a type and cannot be used in a redirected constructor");
|
| + static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErrorCode.con1('REDIRECT_TO_NON_CLASS', 135, "The name '%s' is not a type and cannot be used in a redirected constructor");
|
|
|
| /**
|
| * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with the const modifier but
|
| * <i>k'</i> is not a constant constructor.
|
| */
|
| - static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 135, "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', 136, "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', 136, "The constructor '%s' could not be found in '%s'");
|
| + static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', 137, "The constructor '%s' could not be found in '%s'");
|
|
|
| /**
|
| * 7.6.1 Generative constructors: A generative constructor may be <i>redirecting</i>, in which
|
| * case its only action is to invoke another generative constructor.
|
| */
|
| - static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR', 137, "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', 138, "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', 138, "Local variables cannot be referenced before they are declared");
|
| + static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const CompileTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 139, "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', 139, "rethrow must be inside of a catch clause");
|
| + static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErrorCode.con1('RETHROW_OUTSIDE_CATCH', 140, "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', 140, "Constructors cannot return a value");
|
| + static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const CompileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 141, "Constructors cannot return a value");
|
|
|
| /**
|
| * 14.1 Imports: It is a compile-time error if a prefix used in a deferred import is used in
|
| * another import clause.
|
| */
|
| - static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeErrorCode.con1('SHARED_DEFERRED_PREFIX', 141, "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', 142, "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
|
| @@ -1564,19 +1574,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', 142, "Invalid context for 'super' invocation");
|
| + static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTimeErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 143, "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', 143, "The redirecting constructor cannot have a 'super' initializer");
|
| + static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const CompileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 144, "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', 144, "");
|
| + static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileTimeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 145, "");
|
|
|
| /**
|
| * 12.11 Instance Creation: It is a static type warning if any of the type arguments to a
|
| @@ -1595,19 +1605,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', 145, "'%s' does not extend '%s'");
|
| + static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const CompileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 146, "'%s' does not extend '%s'");
|
|
|
| /**
|
| * 15.3.1 Typedef: Any self reference, either directly, or recursively via another typedef, is a
|
| * compile time error.
|
| */
|
| - static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const CompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 146, "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', 147, "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', 147, "Undefined class '%s'");
|
| + static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode.con1('UNDEFINED_CLASS', 148, "Undefined class '%s'");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1615,7 +1625,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', 148, "The class '%s' does not have a generative constructor '%s'");
|
| + static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 149, "The class '%s' does not have a generative constructor '%s'");
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the superinitializer appears
|
| @@ -1623,7 +1633,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', 149, "The class '%s' does not have a default generative constructor");
|
| + static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT', 150, "The class '%s' does not have a default generative constructor");
|
|
|
| /**
|
| * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
|
| @@ -1635,7 +1645,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', 150, "The named parameter '%s' is not defined");
|
| + static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTimeErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 151, "The named parameter '%s' is not defined");
|
|
|
| /**
|
| * 14.2 Exports: It is a compile-time error if the compilation unit found at the specified URI is
|
| @@ -1650,7 +1660,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', 151, "Target of URI does not exist: '%s'");
|
| + static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorCode.con1('URI_DOES_NOT_EXIST', 152, "Target of URI does not exist: '%s'");
|
|
|
| /**
|
| * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if
|
| @@ -1662,7 +1672,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', 152, "URIs cannot use string interpolation");
|
| + static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeErrorCode.con1('URI_WITH_INTERPOLATION', 153, "URIs cannot use string interpolation");
|
|
|
| /**
|
| * 7.1.1 Operators: It is a compile-time error if the arity of the user-declared operator []= is
|
| @@ -1675,7 +1685,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', 153, "Operator '%s' should declare exactly %d parameter(s), but %d found");
|
| + static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 154, "Operator '%s' should declare exactly %d parameter(s), but %d found");
|
|
|
| /**
|
| * 7.1.1 Operators: It is a compile time error if the arity of the user-declared operator - is not
|
| @@ -1683,13 +1693,13 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| *
|
| * @param actualNumberOfParameters the number of parameters found in the operator declaration
|
| */
|
| - static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS', 154, "Operator '-' should declare 0 or 1 parameter, but %d found");
|
| + static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS', 155, "Operator '-' should declare 0 or 1 parameter, but %d found");
|
|
|
| /**
|
| * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include
|
| * exactly one required formal parameter <i>p</i>.
|
| */
|
| - static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 155, "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', 156, "Setters should declare exactly one required parameter");
|
|
|
| static const List<CompileTimeErrorCode> values = const [
|
| AMBIGUOUS_EXPORT,
|
| @@ -1766,6 +1776,7 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
| INITIALIZER_FOR_STATIC_FIELD,
|
| INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD,
|
| INITIALIZING_FORMAL_FOR_STATIC_FIELD,
|
| + INSTANCE_MEMBER_ACCESS_FROM_FACTORY,
|
| INSTANCE_MEMBER_ACCESS_FROM_STATIC,
|
| INVALID_ANNOTATION,
|
| INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY,
|
| @@ -1880,6 +1891,9 @@ class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo
|
|
|
| @override
|
| ErrorType get type => ErrorType.COMPILE_TIME_ERROR;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
| @@ -1921,6 +1935,13 @@ abstract class ErrorCode {
|
| * @return the type of the error
|
| */
|
| ErrorType get type;
|
| +
|
| + /**
|
| + * Return a unique name for this error code.
|
| + *
|
| + * @return a unique name for this error code
|
| + */
|
| + String get uniqueName;
|
| }
|
|
|
| /**
|
| @@ -1996,22 +2017,26 @@ class ErrorReporter {
|
| * Report an error with the given error code and arguments.
|
| *
|
| * @param errorCode the error code of the error to be reported
|
| - * @param node the node specifying the location of the error
|
| + * @param element the element which name should be used as the location of the error
|
| * @param arguments the arguments to the error, used to compose the error message
|
| */
|
| - void reportErrorForNode(ErrorCode errorCode, AstNode node, List<Object> arguments) {
|
| - reportErrorForOffset(errorCode, node.offset, node.length, arguments);
|
| + void reportErrorForElement(ErrorCode errorCode, Element element, List<Object> arguments) {
|
| + reportErrorForOffset(errorCode, element.nameOffset, element.displayName.length, arguments);
|
| }
|
|
|
| /**
|
| * Report an error with the given error code and arguments.
|
| *
|
| + * If the arguments contain the names of two or more types, the method
|
| + * [reportTypeErrorForNode] should be used and the types
|
| + * themselves (rather than their names) should be passed as arguments.
|
| + *
|
| * @param errorCode the error code of the error to be reported
|
| - * @param element the element which name should be used as the location of the error
|
| + * @param node the node specifying the location of the error
|
| * @param arguments the arguments to the error, used to compose the error message
|
| */
|
| - void reportErrorForElement(ErrorCode errorCode, Element element, List<Object> arguments) {
|
| - reportErrorForOffset(errorCode, element.nameOffset, element.displayName.length, arguments);
|
| + void reportErrorForNode(ErrorCode errorCode, AstNode node, List<Object> arguments) {
|
| + reportErrorForOffset(errorCode, node.offset, node.length, arguments);
|
| }
|
|
|
| /**
|
| @@ -2038,6 +2063,24 @@ class ErrorReporter {
|
| }
|
|
|
| /**
|
| + * Report an error with the given error code and arguments. The arguments are expected to contain
|
| + * two or more types. Convert the types into strings by using the display names of the types,
|
| + * unless there are two or more types with the same names, in which case the extended display
|
| + * names of the types will be used in order to clarify the message.
|
| + *
|
| + * If there are not two or more types in the argument list, the method
|
| + * [reportErrorForNode] should be used instead.
|
| + *
|
| + * @param errorCode the error code of the error to be reported
|
| + * @param node the node specifying the location of the error
|
| + * @param arguments the arguments to the error, used to compose the error message
|
| + */
|
| + void reportTypeErrorForNode(ErrorCode errorCode, AstNode node, List<Object> arguments) {
|
| + _convertTypeNames(arguments);
|
| + reportErrorForOffset(errorCode, node.offset, node.length, arguments);
|
| + }
|
| +
|
| + /**
|
| * Set the source to be used when reporting errors. Setting the source to `null` will cause
|
| * the default source to be used.
|
| *
|
| @@ -2046,6 +2089,59 @@ class ErrorReporter {
|
| void set source(Source source) {
|
| this._source = source == null ? _defaultSource : source;
|
| }
|
| +
|
| + /**
|
| + * Given an array of arguments that is expected to contain two or more types, convert the types
|
| + * into strings by using the display names of the types, unless there are two or more types with
|
| + * the same names, in which case the extended display names of the types will be used in order to
|
| + * clarify the message.
|
| + *
|
| + * @param arguments the arguments that are to be converted
|
| + */
|
| + void _convertTypeNames(List<Object> arguments) {
|
| + if (_hasEqualTypeNames(arguments)) {
|
| + int count = arguments.length;
|
| + for (int i = 0; i < count; i++) {
|
| + Object argument = arguments[i];
|
| + if (argument is DartType) {
|
| + DartType type = argument;
|
| + Element element = type.element;
|
| + if (element == null) {
|
| + arguments[i] = type.displayName;
|
| + } else {
|
| + arguments[i] = element.extendedDisplayName;
|
| + }
|
| + }
|
| + }
|
| + } else {
|
| + int count = arguments.length;
|
| + for (int i = 0; i < count; i++) {
|
| + Object argument = arguments[i];
|
| + if (argument is DartType) {
|
| + arguments[i] = argument.displayName;
|
| + }
|
| + }
|
| + }
|
| + }
|
| +
|
| + /**
|
| + * Return `true` if the given array of arguments contains two or more types with the same
|
| + * display name.
|
| + *
|
| + * @param arguments the arguments being tested
|
| + * @return `true` if the array of arguments contains two or more types with the same display
|
| + * name
|
| + */
|
| + bool _hasEqualTypeNames(List<Object> arguments) {
|
| + int count = arguments.length;
|
| + Set<String> typeNames = new Set<String>();
|
| + for (int i = 0; i < count; i++) {
|
| + if (arguments[i] is DartType && typeNames.add((arguments[i] as DartType).displayName)) {
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| + }
|
| }
|
|
|
| /**
|
| @@ -2448,6 +2544,9 @@ class HintCode extends Enum<HintCode> implements ErrorCode {
|
|
|
| @override
|
| ErrorType get type => ErrorType.HINT;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
| @@ -2506,6 +2605,9 @@ class HtmlWarningCode extends Enum<HtmlWarningCode> implements ErrorCode {
|
|
|
| @override
|
| ErrorType get type => ErrorType.STATIC_WARNING;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
| @@ -2555,6 +2657,9 @@ class PolymerCode extends Enum<PolymerCode> implements ErrorCode {
|
|
|
| @override
|
| ErrorType get type => ErrorType.POLYMER;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
| @@ -2623,6 +2728,9 @@ class PubSuggestionCode extends Enum<PubSuggestionCode> implements ErrorCode {
|
|
|
| @override
|
| ErrorType get type => ErrorType.PUB_SUGGESTION;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
| @@ -2970,6 +3078,9 @@ class StaticTypeWarningCode extends Enum<StaticTypeWarningCode> implements Error
|
|
|
| @override
|
| ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
| @@ -3897,6 +4008,9 @@ class StaticWarningCode extends Enum<StaticWarningCode> implements ErrorCode {
|
|
|
| @override
|
| ErrorType get type => ErrorType.STATIC_WARNING;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
| @@ -3938,4 +4052,7 @@ class TodoCode extends Enum<TodoCode> implements ErrorCode {
|
|
|
| @override
|
| ErrorType get type => ErrorType.TODO;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|