CompileTimeErrorCode class

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, when appropriate, how the problem can be corrected.

Inheritance
Implementers

Constructors

CompileTimeErrorCode(String name, String message, {String correction, bool hasPublishedDocs, bool isUnresolvedIdentifier: false})
Initialize a newly created error code to have the given name. The message associated with the error will be created from the given message template. The correction associated with the error will be created from the given correction template.
const

Properties

correction String
The template used to create the correction to be displayed for this error, or null if there is no correction information for this error. The correction should indicate how the user can fix the error.
read-only, inherited
errorSeverity ErrorSeverity
The severity of the error.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
hasPublishedDocs bool
Return true if diagnostics with this code have documentation for them that has been published.
final, inherited
isIgnorable bool
Whether a finding of this error is ignorable via comments such as // ignore: or // ignore_for_file:.
read-only, inherited
isUnresolvedIdentifier bool
Whether this error is caused by an unresolved identifier.
final, inherited
message String
The template used to create the message to be displayed for this error. The message should indicate what is wrong and why it is wrong.
read-only, inherited
name String
The name of the error code.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type ErrorType
The type of the error.
read-only, override
uniqueName String
The unique name of this error code.
read-only, inherited
url String
Return a URL that can be used to access documentation for diagnostics with this code, or null if there is no published documentation.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

ABSTRACT_FIELD_CONSTRUCTOR_INITIALIZER → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCodeWithUniqueName('ABSTRACT_FIELD_INITIALIZER', 'ABSTRACT_FIELD_CONSTRUCTOR_INITIALIZER', "Abstract fields can't have initializers.", correction: &…
ABSTRACT_FIELD_INITIALIZER → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('ABSTRACT_FIELD_INITIALIZER', "Abstract fields can't have initializers.", correction: "Try removing the initializer or the 'abstract' keyw…
ABSTRACT_SUPER_MEMBER_REFERENCE → const CompileTimeErrorCode
Parameters: 0: the display name for the kind of the found abstract member 1: the name of the member
const CompileTimeErrorCode('ABSTRACT_SUPER_MEMBER_REFERENCE', "The {0} '{1}' is always abstract in the supertype.", hasPublishedDocs: true)
AMBIGUOUS_EXPORT → const CompileTimeErrorCode
14.2 Exports: It is a compile-time error if a name N is re-exported by a library L and N is introduced into the export namespace of L by more than one export, unless each all exports refer to same declaration for the name N. [...]
const CompileTimeErrorCode('AMBIGUOUS_EXPORT', "The name '{0}' is defined in the libraries '{1}' and '{2}'.", correction: "Try removing the export of one…
AMBIGUOUS_EXTENSION_MEMBER_ACCESS → const CompileTimeErrorCode
Parameters: 0: the name of the member 1: the name of the first declaring extension 2: the name of the second declaring extension
const CompileTimeErrorCode('AMBIGUOUS_EXTENSION_MEMBER_ACCESS', "A member named '{0}' is defined in extensions '{1}' and '{2}' and " "neither is more spe…
AMBIGUOUS_IMPORT → const CompileTimeErrorCode
Parameters: 0: the name of the ambiguous type 1: the name of the first library that the type is found 2: the name of the second library that the type is found
const CompileTimeErrorCode('AMBIGUOUS_IMPORT', "The name '{0}' is defined in the libraries {1}.", correction: "Try using 'as prefix' for one of the import direct…
AMBIGUOUS_SET_OR_MAP_LITERAL_BOTH → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('AMBIGUOUS_SET_OR_MAP_LITERAL_BOTH', "This literal contains both 'Map' and 'Iterable' spreads, " "which makes it impossible to determi…
AMBIGUOUS_SET_OR_MAP_LITERAL_EITHER → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('AMBIGUOUS_SET_OR_MAP_LITERAL_EITHER', "This literal must be either a map or a set, but the elements don't " "have enough information for type inf…
ANNOTATION_WITH_NON_CLASS → const CompileTimeErrorCode
15 Metadata: The constant expression given in an annotation is type checked and evaluated in the scope surrounding the declaration being annotated. [...]
const CompileTimeErrorCode('ANNOTATION_WITH_NON_CLASS', "The name '{0}' isn't a class.", correction: "Try importing the library that declares the class, " "…
ARGUMENT_TYPE_NOT_ASSIGNABLE → const CompileTimeErrorCode
Parameters: 0: the name of the actual argument type 1: the name of the expected type
const CompileTimeErrorCode('ARGUMENT_TYPE_NOT_ASSIGNABLE', "The argument type '{0}' can't be assigned to the parameter type " "'{1}'.", hasPublishedDocs…
ASSERT_IN_REDIRECTING_CONSTRUCTOR → const CompileTimeErrorCode
const CompileTimeErrorCode('ASSERT_IN_REDIRECTING_CONSTRUCTOR', "A redirecting constructor can't have an 'assert' initializer.")
ASSIGNMENT_TO_CONST → const CompileTimeErrorCode
5 Variables: Attempting to assign to a final variable elsewhere will cause a NoSuchMethodError to be thrown, because no setter is defined for it. The assignment will also give rise to a static warning for the same reason. [...]
const CompileTimeErrorCode('ASSIGNMENT_TO_CONST', "Constant variables can't be assigned a value.", correction: "Try removing the assignment, or " "remove the modif…
ASSIGNMENT_TO_FINAL → const CompileTimeErrorCode
Parameters: 0: the name of the final variable
const CompileTimeErrorCode('ASSIGNMENT_TO_FINAL', "'{0}' can't be used as a setter because it's final.", correction: "Try finding a different setter, or making &…
ASSIGNMENT_TO_FINAL_LOCAL → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('ASSIGNMENT_TO_FINAL_LOCAL', "The final variable '{0}' can only be set once.", correction: "Try making '{0}' non-final.", hasPubl…
ASSIGNMENT_TO_FINAL_NO_SETTER → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('ASSIGNMENT_TO_FINAL_NO_SETTER', "There isn’t a setter named '{0}' in class '{1}'.", correction: "Try correcting the name to reference…
ASSIGNMENT_TO_FUNCTION → const CompileTimeErrorCode
12.18 Assignment: It is as static warning if an assignment of the form v = e occurs inside a top level or static function (be it function, method, getter, or setter) or variable initializer and there is neither a local variable declaration with name v nor setter declaration with name v= in the lexical scope enclosing the assignment.
const CompileTimeErrorCode('ASSIGNMENT_TO_FUNCTION', "Functions can't be assigned a value.")
ASSIGNMENT_TO_METHOD → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('ASSIGNMENT_TO_METHOD', "Methods can't be assigned a value.", hasPublishedDocs: true)
ASSIGNMENT_TO_TYPE → const CompileTimeErrorCode
12.18 Assignment: It is as static warning if an assignment of the form v = e occurs inside a top level or static function (be it function, method, getter, or setter) or variable initializer and there is neither a local variable declaration with name v nor setter declaration with name v= in the lexical scope enclosing the assignment.
const CompileTimeErrorCode('ASSIGNMENT_TO_TYPE', "Types can't be assigned a value.")
ASYNC_FOR_IN_WRONG_CONTEXT → const CompileTimeErrorCode
17.6.3 Asynchronous For-in: It is a compile-time error if an asynchronous for-in statement appears inside a synchronous function.
const CompileTimeErrorCode('ASYNC_FOR_IN_WRONG_CONTEXT', "The async for-in can only be used in an async function.", correction: "Try marking the function body with either 'a…
AWAIT_IN_LATE_LOCAL_VARIABLE_INITIALIZER → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('AWAIT_IN_LATE_LOCAL_VARIABLE_INITIALIZER', "The 'await' expression can't be used in a 'late' local variable's " "initializer.…
AWAIT_IN_WRONG_CONTEXT → const CompileTimeErrorCode
16.30 Await Expressions: It is a compile-time error if the function immediately enclosing a is not declared asynchronous. (Where a is the await expression.)
const CompileTimeErrorCode('AWAIT_IN_WRONG_CONTEXT', "The await expression can only be used in an async function.", correction: "Try marking the function body with either 'a…
BODY_MIGHT_COMPLETE_NORMALLY → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('BODY_MIGHT_COMPLETE_NORMALLY', "The body might complete normally, causing 'null' to be returned, " "but the return type is a potentially non-…
BREAK_LABEL_ON_SWITCH_MEMBER → const CompileTimeErrorCode
const CompileTimeErrorCode('BREAK_LABEL_ON_SWITCH_MEMBER', "Break label resolves to case or default statement")
BUILT_IN_IDENTIFIER_AS_EXTENSION_NAME → const CompileTimeErrorCode
Parameters: 0: the built-in identifier that is being used
const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_EXTENSION_NAME', "The built-in identifier '{0}' can't be used as an extension name.", correction: "Try choosing a …
BUILT_IN_IDENTIFIER_AS_PREFIX_NAME → const CompileTimeErrorCode
16.33 Identifier Reference: It is a compile-time error if a built-in identifier is used as the declared name of a prefix, class, type parameter or type alias. [...]
const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_PREFIX_NAME', "The built-in identifier '{0}' can't be used as a prefix name.", correction: "Try choosing a differe…
BUILT_IN_IDENTIFIER_AS_TYPE → const CompileTimeErrorCode
Parameters: 0: the built-in identifier that is being used
const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE', "The built-in identifier '{0}' can't be used as a type.", correction: "Try correcting the name to match an …
BUILT_IN_IDENTIFIER_AS_TYPE_NAME → const CompileTimeErrorCode
16.33 Identifier Reference: It is a compile-time error if a built-in identifier is used as the declared name of a prefix, class, type parameter or type alias. [...]
const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE_NAME', "The built-in identifier '{0}' can't be used as a type name.", correction: "Try choosing a different n…
BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME → const CompileTimeErrorCode
16.33 Identifier Reference: It is a compile-time error if a built-in identifier is used as the declared name of a prefix, class, type parameter or type alias. [...]
const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME', "The built-in identifier '{0}' can't be used as a type parameter " "name.", correction:…
BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME → const CompileTimeErrorCode
16.33 Identifier Reference: It is a compile-time error if a built-in identifier is used as the declared name of a prefix, class, type parameter or type alias. [...]
const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME', "The built-in identifier '{0}' can't be used as a typedef name.", correction: "Try choosing a diffe…
CASE_BLOCK_NOT_TERMINATED → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('CASE_BLOCK_NOT_TERMINATED', "The last statement of the 'case' should be 'break', 'continue', " "'rethrow', 'retur…
CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS → const CompileTimeErrorCode
13.9 Switch: It is a compile-time error if the class C implements the operator ==. [...]
const CompileTimeErrorCode('CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS', "The switch case expression type '{0}' can't override the == " "operator.")
CASE_EXPRESSION_TYPE_IS_NOT_SWITCH_EXPRESSION_SUBTYPE → const CompileTimeErrorCode
Parameters: 0: the type of the case expression 1: the type of the switch expression
const CompileTimeErrorCode('CASE_EXPRESSION_TYPE_IS_NOT_SWITCH_EXPRESSION_SUBTYPE', "The switch case expression type '{0}' must be a subtype of the " "switch expression …
CAST_TO_NON_TYPE → const CompileTimeErrorCode
No parameters.
const CompileTimeErrorCode('CAST_TO_NON_TYPE', "The name '{0}' isn't a type, so it can't be used in an 'as' expression.", correction: "Try changing the n…
CONCRETE_CLASS_WITH_ABSTRACT_MEMBER → const CompileTimeErrorCode
Parameters: 0: the name of the abstract method 1: the name of the enclosing class
const CompileTimeErrorCode('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', "'{0}' must have a method body because '{1}' isn't abstract.", correction: "Try making '…
CONFLICTING_CONSTRUCTOR_AND_STATIC_FIELD → const CompileTimeErrorCode
10.11 Class Member Conflicts: Let C be a class. It is a compile-time error if C declares a constructor named C.n, and a static member with basename n. [...]
const CompileTimeErrorCode('CONFLICTING_CONSTRUCTOR_AND_STATIC_FIELD', "'{0}' can't be used to name both a constructor and a static field " "in this class.", co…
CONFLICTING_CONSTRUCTOR_AND_STATIC_METHOD → const CompileTimeErrorCode
10.11 Class Member Conflicts: Let C be a class. It is a compile-time error if C declares a constructor named C.n, and a static member with basename n. [...]
const CompileTimeErrorCode('CONFLICTING_CONSTRUCTOR_AND_STATIC_METHOD', "'{0}' can't be used to name both a constructor and a static method " "in this class.", …
CONFLICTING_FIELD_AND_METHOD → const CompileTimeErrorCode
10.11 Class Member Conflicts: Let C be a class. It is a compile-time error if C declares a getter or a setter with basename n, and has a method named n. [...]
const CompileTimeErrorCode('CONFLICTING_FIELD_AND_METHOD', "Class '{0}' can't define field '{1}' and have method '{2}.{1}' " "with the same name.&quo…
CONFLICTING_GENERIC_INTERFACES → const CompileTimeErrorCode
10.10 Superinterfaces: It is a compile-time error if a class C has two superinterfaces that are different instantiations of the same generic class. For example, a class may not have both List<int> and List<num> as superinterfaces. [...]
const CompileTimeErrorCode('CONFLICTING_GENERIC_INTERFACES', "The class '{0}' cannot implement both '{1}' and '{2}' because the " "type arguments are dif…
CONFLICTING_METHOD_AND_FIELD → const CompileTimeErrorCode
10.11 Class Member Conflicts: Let C be a class. It is a compile-time error if C declares a method named n, and has a getter or a setter with basename n. [...]
const CompileTimeErrorCode('CONFLICTING_METHOD_AND_FIELD', "Class '{0}' can't define method '{1}' and have field '{2}.{1}' " "with the same name.&quo…
CONFLICTING_STATIC_AND_INSTANCE → const CompileTimeErrorCode
10.11 Class Member Conflicts: Let C be a class. It is a compile-time error if C declares a static member with basename n, and has an instance member with basename n. [...]
const CompileTimeErrorCode('CONFLICTING_STATIC_AND_INSTANCE', "Class '{0}' can't define static member '{1}' and have instance " "member '{2}.{1}' wit…
CONFLICTING_TYPE_VARIABLE_AND_CLASS → const CompileTimeErrorCode
  • Classes: It is a compile time error if a generic class declares a type variable with the same name as the class or any of its members or constructors.
  • [...]
    const CompileTimeErrorCodeWithUniqueName('CONFLICTING_TYPE_VARIABLE_AND_CONTAINER', 'CONFLICTING_TYPE_VARIABLE_AND_CLASS', "'{0}' can't be used to name both a type var…
    CONFLICTING_TYPE_VARIABLE_AND_EXTENSION → const CompileTimeErrorCode
    It is a compile time error if an extension declares a type parameter with the same name as the extension. [...]
    const CompileTimeErrorCodeWithUniqueName('CONFLICTING_TYPE_VARIABLE_AND_CONTAINER', 'CONFLICTING_TYPE_VARIABLE_AND_EXTENSION', "'{0}' can't be used to name both a type…
    CONFLICTING_TYPE_VARIABLE_AND_MEMBER_CLASS → const CompileTimeErrorCode
  • Classes: It is a compile time error if a generic class declares a type variable with the same name as the class or any of its members or constructors.
  • [...]
    const CompileTimeErrorCodeWithUniqueName('CONFLICTING_TYPE_VARIABLE_AND_MEMBER', 'CONFLICTING_TYPE_VARIABLE_AND_MEMBER_CLASS', "'{0}' can't be used to name both a type…
    CONFLICTING_TYPE_VARIABLE_AND_MEMBER_EXTENSION → const CompileTimeErrorCode
    It is a compile time error if a generic extension declares a member with the same basename as the name of any of the extension's type parameters.
    const CompileTimeErrorCodeWithUniqueName('CONFLICTING_TYPE_VARIABLE_AND_MEMBER', 'CONFLICTING_TYPE_VARIABLE_AND_MEMBER_EXTENSION', "'{0}' can't be used to name both a …
    CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH → const CompileTimeErrorCode
    16.12.2 Const: It is a compile-time error if evaluation of a constant object results in an uncaught exception being thrown.
    const CompileTimeErrorCode('CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH', "In a const constructor, a value of type '{0}' can't be assigned to the " "field '{1}', w…
    CONST_CONSTRUCTOR_PARAM_TYPE_MISMATCH → const CompileTimeErrorCode
    Parameters: 0: The type of the runtime value of the argument 1: The static type of the parameter
    const CompileTimeErrorCode('CONST_CONSTRUCTOR_PARAM_TYPE_MISMATCH', "A value of type '{0}' can't be assigned to a parameter of type " "'{1}' in a const const…
    CONST_CONSTRUCTOR_THROWS_EXCEPTION → const CompileTimeErrorCode
    16.12.2 Const: It is a compile-time error if evaluation of a constant object results in an uncaught exception being thrown.
    const CompileTimeErrorCode('CONST_CONSTRUCTOR_THROWS_EXCEPTION', "Const constructors can't throw exceptions.", correction: "Try removing the throw statement, or " "…
    CONST_CONSTRUCTOR_WITH_FIELD_INITIALIZED_BY_NON_CONST → const CompileTimeErrorCode
    Parameters: 0: the name of the field
    const CompileTimeErrorCode('CONST_CONSTRUCTOR_WITH_FIELD_INITIALIZED_BY_NON_CONST', "Can't define the 'const' constructor because the field '{0}' is " "initi…
    CONST_CONSTRUCTOR_WITH_MIXIN_WITH_FIELD → const CompileTimeErrorCode
    7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in the initializer list of a constant constructor must specify a constant constructor of the superclass of the immediately enclosing class or a compile-time error occurs. [...]
    const CompileTimeErrorCodeWithUniqueName('CONST_CONSTRUCTOR_WITH_MIXIN_WITH_FIELD', 'CONST_CONSTRUCTOR_WITH_MIXIN_WITH_FIELD', "This constructor can't be declared 'const&#…
    CONST_CONSTRUCTOR_WITH_MIXIN_WITH_FIELDS → const CompileTimeErrorCode
    7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in the initializer list of a constant constructor must specify a constant constructor of the superclass of the immediately enclosing class or a compile-time error occurs. [...]
    const CompileTimeErrorCodeWithUniqueName('CONST_CONSTRUCTOR_WITH_MIXIN_WITH_FIELD', 'CONST_CONSTRUCTOR_WITH_MIXIN_WITH_FIELDS', "This constructor can't be declared 'const&…
    CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER → const CompileTimeErrorCode
    7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in the initializer list of a constant constructor must specify a constant constructor of the superclass of the immediately enclosing class or a compile-time error occurs. [...]
    const CompileTimeErrorCode('CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER', "Constant constructor can't call non-constant super constructor of " "'{0}'.", correction: …
    CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD', "Can't define a const constructor for a class with non-final fields.", correction: "Try making all of th…
    CONST_DEFERRED_CLASS → const CompileTimeErrorCode
    12.12.2 Const: It is a compile-time error if T is a deferred type.
    const CompileTimeErrorCode('CONST_DEFERRED_CLASS', "Deferred classes can't be created with 'const'.", correction: "Try using 'new' to create the instance, or…
    CONST_EVAL_THROWS_EXCEPTION → const CompileTimeErrorCode
    16.12.2 Const: It is a compile-time error if evaluation of a constant object results in an uncaught exception being thrown.
    const CompileTimeErrorCode('CONST_EVAL_THROWS_EXCEPTION', "Evaluation of this constant expression throws an exception.")
    CONST_EVAL_THROWS_IDBZE → const CompileTimeErrorCode
    16.12.2 Const: It is a compile-time error if evaluation of a constant object results in an uncaught exception being thrown.
    const CompileTimeErrorCode('CONST_EVAL_THROWS_IDBZE', "Evaluation of this constant expression throws an " "IntegerDivisionByZeroException.")
    CONST_EVAL_TYPE_BOOL → const CompileTimeErrorCode
    16.12.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.
    const CompileTimeErrorCode('CONST_EVAL_TYPE_BOOL', "In constant expressions, operands of this operator must be of type " "'bool'.")
    CONST_EVAL_TYPE_BOOL_INT → const CompileTimeErrorCode
    16.12.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.
    const CompileTimeErrorCode('CONST_EVAL_TYPE_BOOL_INT', "In constant expressions, operands of this operator must be of type " "'bool' or 'int'.")
    CONST_EVAL_TYPE_BOOL_NUM_STRING → const CompileTimeErrorCode
    16.12.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.
    const CompileTimeErrorCode('CONST_EVAL_TYPE_BOOL_NUM_STRING', "In constant expressions, operands of this operator must be of type " "'bool', 'num', 'String&#…
    CONST_EVAL_TYPE_INT → const CompileTimeErrorCode
    16.12.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.
    const CompileTimeErrorCode('CONST_EVAL_TYPE_INT', "In constant expressions, operands of this operator must be of type " "'int'.")
    CONST_EVAL_TYPE_NUM → const CompileTimeErrorCode
    16.12.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.
    const CompileTimeErrorCode('CONST_EVAL_TYPE_NUM', "In constant expressions, operands of this operator must be of type " "'num'.")
    CONST_EVAL_TYPE_TYPE → const CompileTimeErrorCode
    const CompileTimeErrorCode('CONST_EVAL_TYPE_TYPE', "In constant expressions, operands of this operator must be of type " "'Type'.")
    CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE → const CompileTimeErrorCode
    Parameters: 0: the name of the type of the initializer expression 1: the name of the type of the field
    const CompileTimeErrorCodeWithUniqueName('FIELD_INITIALIZER_NOT_ASSIGNABLE', 'CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE', "The initializer type '{0}' can't be assigned to…
    CONST_FORMAL_PARAMETER → const CompileTimeErrorCode
    6.2 Formal Parameters: It is a compile-time error if a formal parameter is declared as a constant variable.
    const CompileTimeErrorCode('CONST_FORMAL_PARAMETER', "Parameters can't be const.", correction: "Try removing the 'const' keyword.")
    CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', "Const variables must be initialized with a constant value.", correction: "Try changing the initializer t…
    CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    5 Variables: A constant variable must be initialized to a compile-time constant or a compile-time error occurs. [...]
    const CompileTimeErrorCode('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used to " "initialized a cons…
    CONST_INSTANCE_FIELD → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('CONST_INSTANCE_FIELD', "Only static fields can be declared as const.", correction: "Try declaring the field as final, or adding the keyword " &q…
    CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS → const CompileTimeErrorCode
    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 == unless the key is a string or integer. [...]
    const CompileTimeErrorCode('CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS', "The constant map entry key expression type '{0}' can't override " "the == operator.&qu…
    CONST_NOT_INITIALIZED → const CompileTimeErrorCode
    Parameters: 0: the name of the uninitialized final variable
    const CompileTimeErrorCode('CONST_NOT_INITIALIZED', "The constant '{0}' must be initialized.", correction: "Try adding an initialization to the declaration.", hasPu…
    CONST_SET_ELEMENT_TYPE_IMPLEMENTS_EQUALS → const CompileTimeErrorCode
    Parameters: 0: the type of the element
    const CompileTimeErrorCode('CONST_SET_ELEMENT_TYPE_IMPLEMENTS_EQUALS', "The constant set element type '{0}' can't override " "the == operator.", correction: &qu…
    CONST_SPREAD_EXPECTED_LIST_OR_SET → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('CONST_SPREAD_EXPECTED_LIST_OR_SET', "A list or a set is expected in this spread.", hasPublishedDocs: true)
    CONST_SPREAD_EXPECTED_MAP → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('CONST_SPREAD_EXPECTED_MAP', "A map is expected in this spread.", hasPublishedDocs: true)
    CONST_WITH_NON_CONST → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('CONST_WITH_NON_CONST', "The constructor being called isn't a const constructor.", correction: "Try removing 'const' from the constructor …
    CONST_WITH_NON_CONSTANT_ARGUMENT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('CONST_WITH_NON_CONSTANT_ARGUMENT', "Arguments of a constant creation must be constant expressions.", correction: "Try making the argument a valid con…
    CONST_WITH_NON_TYPE → const CompileTimeErrorCode
    Parameters: 0: the name of the non-type element
    const CompileTimeErrorCodeWithUniqueName('CREATION_WITH_NON_TYPE', 'CONST_WITH_NON_TYPE', "The name '{0}' isn't a class.", correction: "Try correcting the na…
    CONST_WITH_TYPE_PARAMETERS → const CompileTimeErrorCode
    16.12.2 Const: If T is a parameterized type, it is a compile-time error if T includes a type variable among its type arguments.
    const CompileTimeErrorCode('CONST_WITH_TYPE_PARAMETERS', "A constant creation can't use a type parameter as a type argument.", correction: "Try replacing the type parameter …
    CONST_WITH_UNDEFINED_CONSTRUCTOR → const CompileTimeErrorCode
    16.12.2 Const: It is a compile-time error if T.id is not the name of a constant constructor declared by the type T. [...]
    const CompileTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR', "The class '{0}' doesn't have a constant constructor '{1}'.", correction: "Try calling a diffe…
    CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT → const CompileTimeErrorCode
    16.12.2 Const: It is a compile-time error if T.id is not the name of a constant constructor declared by the type T. [...]
    const CompileTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', "The class '{0}' doesn't have a default constant constructor.", correction: "Try calling a dif…
    CONTINUE_LABEL_ON_SWITCH → const CompileTimeErrorCode
    const CompileTimeErrorCode('CONTINUE_LABEL_ON_SWITCH', "A continue label resolves to switch, must be loop or switch member")
    COULD_NOT_INFER → const CompileTimeErrorCode
    Parameters: 0: the name of the type parameter 1: detail text explaining why the type could not be inferred
    const CompileTimeErrorCode('COULD_NOT_INFER', "Couldn't infer type parameter '{0}'.{1}")
    DEFAULT_LIST_CONSTRUCTOR → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('DEFAULT_LIST_CONSTRUCTOR', "The default 'List' constructor isn't available when null safety is " "enabled.", correction: "Try u…
    DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR → const CompileTimeErrorCode
    7.6.2 Factories: It is a compile-time error if k explicitly specifies a default value for an optional parameter.
    const CompileTimeErrorCode('DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR', "Default values aren't allowed in factory constructors that redirect " "to another constructor…
    DEFAULT_VALUE_ON_REQUIRED_PARAMETER → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('DEFAULT_VALUE_ON_REQUIRED_PARAMETER', "Required named parameters can't have a default value.", correction: "Try removing either the default value…
    DEFERRED_IMPORT_OF_EXTENSION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('DEFERRED_IMPORT_OF_EXTENSION', "Imports of deferred libraries must hide all extensions", correction: "Try adding either a show combinator listing the…
    DEFINITELY_UNASSIGNED_LATE_LOCAL_VARIABLE → const CompileTimeErrorCode
    Parameters: 0: the name of the variable that is invalid
    const CompileTimeErrorCode('DEFINITELY_UNASSIGNED_LATE_LOCAL_VARIABLE', "The late local variable '{0}' is definitely unassigned at this " "point.", correction: &quo…
    DUPLICATE_CONSTRUCTOR_DEFAULT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCodeWithUniqueName('DUPLICATE_CONSTRUCTOR', 'DUPLICATE_CONSTRUCTOR_DEFAULT', "The default constructor is already defined.", correction: "Try giving…
    DUPLICATE_CONSTRUCTOR_NAME → const CompileTimeErrorCode
    Parameters: 0: the name of the duplicate entity
    const CompileTimeErrorCodeWithUniqueName('DUPLICATE_CONSTRUCTOR', 'DUPLICATE_CONSTRUCTOR_NAME', "The constructor with name '{0}' is already defined.", correction: &qu…
    DUPLICATE_DEFINITION → const CompileTimeErrorCode
    Parameters: 0: the name of the duplicate entity
    const CompileTimeErrorCode('DUPLICATE_DEFINITION', "The name '{0}' is already defined.", correction: "Try renaming one of the declarations.", hasPublishedDocs: true…
    DUPLICATE_NAMED_ARGUMENT → const CompileTimeErrorCode
    Parameters: 0: the name of the parameter that was duplicated
    const CompileTimeErrorCode('DUPLICATE_NAMED_ARGUMENT', "The argument for the named parameter '{0}' was already specified.", correction: "Try removing one of the named ar…
    DUPLICATE_PART → const CompileTimeErrorCode
    18.3 Parts: It's a compile-time error if the same library contains two part directives with the same URI. [...]
    const CompileTimeErrorCode('DUPLICATE_PART', "The library already contains a part with the uri '{0}'.", correction: "Try removing all but one of the duplicated part dire…
    ENUM_CONSTANT_SAME_NAME_AS_ENCLOSING → const CompileTimeErrorCode
    const CompileTimeErrorCode('ENUM_CONSTANT_SAME_NAME_AS_ENCLOSING', "The name of the enum constant can't be the same as the enum's name.", correction: "Try renaming the c…
    EQUAL_ELEMENTS_IN_CONST_SET → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('EQUAL_ELEMENTS_IN_CONST_SET', "Two elements in a constant set literal can't be equal.", correction: "Change or remove the duplicate element."…
    EQUAL_KEYS_IN_CONST_MAP → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('EQUAL_KEYS_IN_CONST_MAP', "Two keys in a constant map literal can't be equal.", correction: "Change or remove the duplicate key.", hasPublis…
    EXPECTED_ONE_LIST_TYPE_ARGUMENTS → const CompileTimeErrorCode
    12.7 Lists: A fresh instance (7.6.1) a, of size n, whose class implements the built-in class List<E> is allocated. [...]
    const CompileTimeErrorCode('EXPECTED_ONE_LIST_TYPE_ARGUMENTS', "List literals require exactly one type argument or none, " "but {0} found.", correction: "Try adjusting…
    EXPECTED_ONE_SET_TYPE_ARGUMENTS → const CompileTimeErrorCode
    Parameters: 0: the number of provided type arguments
    const CompileTimeErrorCode('EXPECTED_ONE_SET_TYPE_ARGUMENTS', "Set literals require exactly one type argument or none, " "but {0} found.", correction: "Try adjusting t…
    EXPECTED_TWO_MAP_TYPE_ARGUMENTS → const CompileTimeErrorCode
    12.8 Maps: A fresh instance (7.6.1) m, of size n, whose class implements the built-in class Map<K, V> is allocated. [...]
    const CompileTimeErrorCode('EXPECTED_TWO_MAP_TYPE_ARGUMENTS', "Map literals require exactly two type arguments or none, " "but {0} found.", correction: "Try adjusting …
    EXPORT_INTERNAL_LIBRARY → const CompileTimeErrorCode
    SDK implementation libraries can be exported only by other SDK libraries. [...]
    const CompileTimeErrorCode('EXPORT_INTERNAL_LIBRARY', "The library '{0}' is internal and can't be exported.")
    EXPORT_LEGACY_SYMBOL → const CompileTimeErrorCode
    Parameters: 0: the name of a symbol defined in a legacy library
    const CompileTimeErrorCode('EXPORT_LEGACY_SYMBOL', "The symbol '{0}' is defined in a legacy library, and can't be " "re-exported from a library with null safety enab…
    EXPORT_OF_NON_LIBRARY → const CompileTimeErrorCode
    14.2 Exports: It is a compile-time error if the compilation unit found at the specified URI is not a library declaration. [...]
    const CompileTimeErrorCode('EXPORT_OF_NON_LIBRARY', "The exported library '{0}' can't have a part-of directive.", correction: "Try exporting the library that the par…
    EXPRESSION_IN_MAP → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('EXPRESSION_IN_MAP', "Expressions can't be used in a map literal.", correction: "Try removing the expression or converting it to be a map " &…
    EXTENDS_DEFERRED_CLASS → const CompileTimeErrorCode
    7.9 Superclasses: It is a compile-time error if the extends clause of a class C includes a deferred type expression. [...]
    const CompileTimeErrorCode('EXTENDS_DEFERRED_CLASS', "Classes can't extend deferred classes.", correction: "Try specifying a different superclass, or " "removing t…
    EXTENDS_DISALLOWED_CLASS → const CompileTimeErrorCode
    Parameters: 0: The name of the disallowed type
    const CompileTimeErrorCodeWithUniqueName('SUBTYPE_OF_DISALLOWED_TYPE', 'EXTENDS_DISALLOWED_CLASS', "Classes can't extend '{0}'.", correction: "Try specifying…
    EXTENDS_NON_CLASS → const CompileTimeErrorCode
    Parameters: 0: the name in the extends clause
    const CompileTimeErrorCode('EXTENDS_NON_CLASS', "Classes can only extend other classes.", correction: "Try specifying a different superclass, or removing the extends " &quo…
    EXTENSION_AS_EXPRESSION → const CompileTimeErrorCode
    Parameters: 0: the name of the extension
    const CompileTimeErrorCode('EXTENSION_AS_EXPRESSION', "Extension '{0}' can't be used as an expression.", correction: "Try replacing it with a valid expression."…
    EXTENSION_CONFLICTING_STATIC_AND_INSTANCE → const CompileTimeErrorCode
    Parameters: 0: the name of the extension defining the conflicting member 1: the name of the conflicting static member
    const CompileTimeErrorCode('EXTENSION_CONFLICTING_STATIC_AND_INSTANCE', "Extension '{0}' can't define static member '{1}' and an instance " "member with the …
    EXTENSION_DECLARES_MEMBER_OF_OBJECT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('EXTENSION_DECLARES_MEMBER_OF_OBJECT', "Extensions can't declare members with the same name as a member " "declared by 'Object'.", co…
    EXTENSION_OVERRIDE_ACCESS_TO_STATIC_MEMBER → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('EXTENSION_OVERRIDE_ACCESS_TO_STATIC_MEMBER', "An extension override can't be used to access a static member from " "an extension.", correcti…
    EXTENSION_OVERRIDE_ARGUMENT_NOT_ASSIGNABLE → const CompileTimeErrorCode
    Parameters: 0: the type of the argument 1: the extended type
    const CompileTimeErrorCode('EXTENSION_OVERRIDE_ARGUMENT_NOT_ASSIGNABLE', "The type of the argument to the extension override '{0}' " "isn't assignable to the extende…
    EXTENSION_OVERRIDE_WITH_CASCADE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('EXTENSION_OVERRIDE_WITH_CASCADE', "Extension overrides have no value so they can't be used as the " "receiver of a cascade expression.", cor…
    EXTENSION_OVERRIDE_WITHOUT_ACCESS → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('EXTENSION_OVERRIDE_WITHOUT_ACCESS', "An extension override can only be used to access instance members.", correction: "Consider adding an access to a…
    EXTERNAL_FIELD_CONSTRUCTOR_INITIALIZER → const CompileTimeErrorCode
    const CompileTimeErrorCode('EXTERNAL_FIELD_CONSTRUCTOR_INITIALIZER', 'External fields cannot have initializers.', correction: "Try removing the field initializer or the 'exter…
    EXTERNAL_FIELD_INITIALIZER → const CompileTimeErrorCode
    const CompileTimeErrorCode('EXTERNAL_FIELD_INITIALIZER', 'External fields cannot have initializers.', correction: "Try removing the initializer or the 'external' keyword.&…
    EXTERNAL_VARIABLE_INITIALIZER → const CompileTimeErrorCode
    const CompileTimeErrorCode('EXTERNAL_VARIABLE_INITIALIZER', 'External variables cannot have initializers.', correction: "Try removing the initializer or the 'external' key…
    EXTRA_POSITIONAL_ARGUMENTS → const CompileTimeErrorCode
    Parameters: 0: the maximum number of positional arguments 1: the actual number of positional arguments given
    const CompileTimeErrorCode('EXTRA_POSITIONAL_ARGUMENTS', "Too many positional arguments: {0} expected, but {1} found.", correction: "Try removing the extra arguments.", has…
    EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED → const CompileTimeErrorCode
    Parameters: 0: the maximum number of positional arguments 1: the actual number of positional arguments given
    const CompileTimeErrorCode('EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED', "Too many positional arguments: {0} expected, but {1} found.", correction: "Try removing the extra positi…
    FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS → const CompileTimeErrorCode
    7.6.1 Generative Constructors: Let k be a generative constructor. It is a compile time error if more than one initializer corresponding to a given instance variable appears in k's list. [...]
    const CompileTimeErrorCode('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', "The field '{0}' can't be initialized twice in the same constructor.", correction: "Try remo…
    FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION', "Fields can't be initialized in the constructor if they are final " "and were already initiali…
    FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER → const CompileTimeErrorCode
    7.6.1 Generative Constructors: Let k be a generative constructor. It is a compile time error if k's initializer list contains an initializer for a variable that is initialized by means of an initializing formal of k.
    const CompileTimeErrorCode('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER', "Fields can't be initialized in both the parameter list and the " "initializers.", correcti…
    FIELD_INITIALIZER_FACTORY_CONSTRUCTOR → const CompileTimeErrorCode
    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.
    const CompileTimeErrorCode('FIELD_INITIALIZER_FACTORY_CONSTRUCTOR', "Initializing formal parameters can't be used in factory " "constructors.", correction: "Try us…
    FIELD_INITIALIZER_NOT_ASSIGNABLE → const CompileTimeErrorCode
    Parameters: 0: the name of the type of the initializer expression 1: the name of the type of the field
    const CompileTimeErrorCode('FIELD_INITIALIZER_NOT_ASSIGNABLE', "The initializer type '{0}' can't be assigned to the field type " "'{1}'.", hasPublishedD…
    FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR → const CompileTimeErrorCode
    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.
    const CompileTimeErrorCode('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', "Initializing formal parameters can only be used in constructors.", correction: "Try using a normal parameter…
    FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR → const CompileTimeErrorCode
    7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its only action is to invoke another generative constructor. [...]
    const CompileTimeErrorCode('FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR', "The redirecting constructor can't have a field initializer.", correction: "Try using a normal parame…
    FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE → const CompileTimeErrorCode
    7.6.1 Generative Constructors: An initializing formal has the form this.id. It is a static warning if the static type of id is not assignable to Tid. [...]
    const CompileTimeErrorCode('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', "The parameter type '{0}' is incompatible with the field type '{1}'.", correction: "Try ch…
    FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR → const CompileTimeErrorCode
  • Variables: It is a static warning if a final instance variable that has been initialized at its point of declaration is also initialized in a constructor.
  • [...]
    const CompileTimeErrorCode('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR', "'{0}' is final and was given a value when it was declared, " "so it can't be set to a…
    FINAL_INITIALIZED_MULTIPLE_TIMES → const CompileTimeErrorCode
    5 Variables: It is a compile-time error if a final instance variable that has is initialized by means of an initializing formal of a constructor is also initialized elsewhere in the same constructor. [...]
    const CompileTimeErrorCode('FINAL_INITIALIZED_MULTIPLE_TIMES', "'{0}' is a final field and so can only be set once.", correction: "Try removing all but one of the initia…
    FINAL_NOT_INITIALIZED → const CompileTimeErrorCode
    Parameters: 0: the name of the uninitialized final variable
    const CompileTimeErrorCode('FINAL_NOT_INITIALIZED', "The final variable '{0}' must be initialized.", correction: "Try initializing the variable.", hasPublishedDocs:…
    FINAL_NOT_INITIALIZED_CONSTRUCTOR_1 → const CompileTimeErrorCode
    Parameters: 0: the name of the uninitialized final variable
    const CompileTimeErrorCodeWithUniqueName('FINAL_NOT_INITIALIZED_CONSTRUCTOR', 'FINAL_NOT_INITIALIZED_CONSTRUCTOR_1', "All final variables must be initialized, but '{0}' is…
    FINAL_NOT_INITIALIZED_CONSTRUCTOR_2 → const CompileTimeErrorCode
    Parameters: 0: the name of the uninitialized final variable 1: the name of the uninitialized final variable
    const CompileTimeErrorCodeWithUniqueName('FINAL_NOT_INITIALIZED_CONSTRUCTOR', 'FINAL_NOT_INITIALIZED_CONSTRUCTOR_2', "All final variables must be initialized, but '{0}' an…
    FINAL_NOT_INITIALIZED_CONSTRUCTOR_3_PLUS → const CompileTimeErrorCode
    Parameters: 0: the name of the uninitialized final variable 1: the name of the uninitialized final variable 2: the number of additional not initialized variables that aren't listed
    const CompileTimeErrorCodeWithUniqueName('FINAL_NOT_INITIALIZED_CONSTRUCTOR', 'FINAL_NOT_INITIALIZED_CONSTRUCTOR_3', "All final variables must be initialized, but '{0}', &…
    FOR_IN_OF_INVALID_ELEMENT_TYPE → const CompileTimeErrorCode
    17.6.2 For-in. It the iterable expression does not implement Iterable with a type argument that can be assigned to the for-in variable's type, this warning is reported. [...]
    const CompileTimeErrorCode('FOR_IN_OF_INVALID_ELEMENT_TYPE', "The type '{0}' used in the 'for' loop must implement {1} with a " "type argument that can be assign…
    FOR_IN_OF_INVALID_TYPE → const CompileTimeErrorCode
    Parameters: 0: The type of the iterable expression. 1: The sequence type -- Iterable for for or Stream for await for.
    const CompileTimeErrorCode('FOR_IN_OF_INVALID_TYPE', "The type '{0}' used in the 'for' loop must implement {1}.", hasPublishedDocs: true)
    FOR_IN_WITH_CONST_VARIABLE → const CompileTimeErrorCode
    const CompileTimeErrorCode('FOR_IN_WITH_CONST_VARIABLE', "A for-in loop-variable can't be 'const'.", correction: "Try removing the 'const' modifier from the …
    GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND → const CompileTimeErrorCode
    It is a compile-time error if a generic function type is used as a bound for a formal type parameter of a class or a function.
    const CompileTimeErrorCode('GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND', "Generic function types can't be used as type parameter bounds", correction: "Try making the free variabl…
    GENERIC_FUNCTION_TYPE_CANNOT_BE_TYPE_ARGUMENT → const CompileTimeErrorCode
    It is a compile-time error if a generic function type is used as an actual type argument.
    const CompileTimeErrorCode('GENERIC_FUNCTION_TYPE_CANNOT_BE_TYPE_ARGUMENT', "A generic function type can't be a type argument.", correction: "Try removing type parameters fr…
    GETTER_NOT_ASSIGNABLE_SETTER_TYPES → const CompileTimeErrorCode
    10.3 Setters: It is a compile-time error if a class has a setter named v= with argument type T and a getter named v with return type S, and S may not be assigned to T. [...]
    const CompileTimeErrorCode('GETTER_NOT_ASSIGNABLE_SETTER_TYPES', "The return type of getter '{0}' is '{1}' which isn't assignable " "to the type '{2}'…
    GETTER_NOT_SUBTYPE_SETTER_TYPES → const CompileTimeErrorCode
    Parameters: 0: the name of the getter 1: the type of the getter 2: the type of the setter 3: the name of the setter
    const CompileTimeErrorCode('GETTER_NOT_SUBTYPE_SETTER_TYPES', "The return type of getter '{0}' is '{1}' which isn't a subtype " "of the type '{2}' of…
    IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    const CompileTimeErrorCode('IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used as values in " "an if condition inside a cons…
    ILLEGAL_ASYNC_GENERATOR_RETURN_TYPE → const CompileTimeErrorCode
    It is a compile-time error if the declared return type of a function marked 'async*' is not a supertype of 'Stream' for some type 'T'.
    const CompileTimeErrorCode('ILLEGAL_ASYNC_GENERATOR_RETURN_TYPE', "Functions marked 'async*' must have a return type that is a " "supertype of 'Stream<T>' …
    ILLEGAL_ASYNC_RETURN_TYPE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('ILLEGAL_ASYNC_RETURN_TYPE', "Functions marked 'async' must have a return type assignable to " "'Future'.", correction: "Try…
    ILLEGAL_SYNC_GENERATOR_RETURN_TYPE → const CompileTimeErrorCode
    It is a compile-time error if the declared return type of a function marked 'sync*' is not a supertype of 'Iterable' for some type 'T'.
    const CompileTimeErrorCode('ILLEGAL_SYNC_GENERATOR_RETURN_TYPE', "Functions marked 'sync*' must have a return type that is a " "supertype of 'Iterable<T>' …
    IMPLEMENTS_DEFERRED_CLASS → const CompileTimeErrorCode
    7.10 Superinterfaces: It is a compile-time error if the implements clause of a class C specifies a malformed type or deferred type as a superinterface. [...]
    const CompileTimeErrorCode('IMPLEMENTS_DEFERRED_CLASS', "Classes and mixins can't implement deferred classes.", correction: "Try specifying a different interface, " &qu…
    IMPLEMENTS_DISALLOWED_CLASS → const CompileTimeErrorCode
    Parameters: 0: The name of the disallowed type
    const CompileTimeErrorCodeWithUniqueName('SUBTYPE_OF_DISALLOWED_TYPE', 'IMPLEMENTS_DISALLOWED_CLASS', "Classes and mixins can't implement '{0}'.", correction: &qu…
    IMPLEMENTS_NON_CLASS → const CompileTimeErrorCode
    Parameters: 0: the name of the interface that was not found
    const CompileTimeErrorCode('IMPLEMENTS_NON_CLASS', "Classes and mixins can only implement other classes and mixins.", correction: "Try specifying a class or mixin, or remove the…
    IMPLEMENTS_REPEATED → const CompileTimeErrorCode
    Parameters: 0: the name of the interface that is implemented more than once
    const CompileTimeErrorCode('IMPLEMENTS_REPEATED', "'{0}' can only be implemented once.", correction: "Try removing all but one occurrence of the class name.", hasPu…
    IMPLEMENTS_SUPER_CLASS → const CompileTimeErrorCode
    7.10 Superinterfaces: It is a compile-time error if the superclass of a class C appears in the implements clause of C. [...]
    const CompileTimeErrorCode('IMPLEMENTS_SUPER_CLASS', "'{0}' can't be used in both 'extends' and 'implements' clauses.", correction: "Try removing one…
    IMPLICIT_THIS_REFERENCE_IN_INITIALIZER → const CompileTimeErrorCode
    Parameters: 0: the name of the instance member
    const CompileTimeErrorCode('IMPLICIT_THIS_REFERENCE_IN_INITIALIZER', "The instance member '{0}' can't be accessed in an initializer.", correction: 'Try replacing the …
    IMPORT_INTERNAL_LIBRARY → const CompileTimeErrorCode
    Parameters: 0: the uri pointing to a library
    const CompileTimeErrorCode('IMPORT_INTERNAL_LIBRARY', "The library '{0}' is internal and can't be imported.", hasPublishedDocs: true)
    IMPORT_OF_NON_LIBRARY → const CompileTimeErrorCode
    14.1 Imports: It is a compile-time error if the specified URI of an immediate import does not refer to a library declaration. [...]
    const CompileTimeErrorCode('IMPORT_OF_NON_LIBRARY', "The imported library '{0}' can't have a part-of directive.", correction: "Try importing the library that the par…
    INCONSISTENT_CASE_EXPRESSION_TYPES → const CompileTimeErrorCode
    13.9 Switch: It is a compile-time error if values of the expressions ek are not instances of the same class C, for all 1 <= k <= n. [...]
    const CompileTimeErrorCode('INCONSISTENT_CASE_EXPRESSION_TYPES', "Case expressions must have the same types, '{0}' isn't a '{1}'.")
    INCONSISTENT_INHERITANCE → const CompileTimeErrorCode
    Parameters: 0: the name of the instance member with inconsistent inheritance. 1: the list of all inherited signatures for this member.
    const CompileTimeErrorCode('INCONSISTENT_INHERITANCE', "Superinterfaces don't have a valid override for '{0}': {1}.", correction: "Try adding an explicit override th…
    INCONSISTENT_INHERITANCE_GETTER_AND_METHOD → const CompileTimeErrorCode
    11.1.1 Inheritance and Overriding. Let I be the implicit interface of a class C declared in library L. I inherits all members of inherited(I, L) and I overrides m' if m' ∈ overrides(I, L). It is a compile-time error if m is a method and m' is a getter, or if m is a getter and m' is a method. [...]
    const CompileTimeErrorCode('INCONSISTENT_INHERITANCE_GETTER_AND_METHOD', "'{0}' is inherited as a getter (from '{1}') and also a " "method (from '{2}').&…
    INCONSISTENT_LANGUAGE_VERSION_OVERRIDE → const CompileTimeErrorCode
    It is a compile-time error if a part file has a different language version override than its library. [...]
    const CompileTimeErrorCode('INCONSISTENT_LANGUAGE_VERSION_OVERRIDE', "Parts must have exactly the same language version override as " "the library.")
    INITIALIZER_FOR_NON_EXISTENT_FIELD → const CompileTimeErrorCode
    Parameters: 0: the name of the initializing formal that is not an instance variable in the immediately enclosing class
    const CompileTimeErrorCode('INITIALIZER_FOR_NON_EXISTENT_FIELD', "'{0}' isn't a field in the enclosing class.", correction: "Try correcting the name to match an exis…
    INITIALIZER_FOR_STATIC_FIELD → const CompileTimeErrorCode
    7.6.1 Generative Constructors: Let k be a generative constructor. It is a compile-time error if k's initializer list contains an initializer for a variable that is not an instance variable declared in the immediately surrounding class. [...]
    const CompileTimeErrorCode('INITIALIZER_FOR_STATIC_FIELD', "'{0}' is a static field in the enclosing class. Fields initialized " "in a constructor can't be static.&q…
    INITIALIZING_FORMAL_FOR_NON_EXISTENT_FIELD → const CompileTimeErrorCode
    Parameters: 0: the name of the initializing formal that is not an instance variable in the immediately enclosing class
    const CompileTimeErrorCode('INITIALIZING_FORMAL_FOR_NON_EXISTENT_FIELD', "'{0}' isn't a field in the enclosing class.", correction: "Try correcting the name to match…
    INITIALIZING_FORMAL_FOR_STATIC_FIELD → const CompileTimeErrorCode
    7.6.1 Generative Constructors: An initializing formal has the form this.id. It is a compile-time error if id is not the name of an instance variable of the immediately enclosing class. [...]
    const CompileTimeErrorCode('INITIALIZING_FORMAL_FOR_STATIC_FIELD', "'{0}' is a static field in the enclosing class. Fields initialized " "in a constructor can't be s…
    INSTANCE_ACCESS_TO_STATIC_MEMBER → const CompileTimeErrorCode
    Parameters: 0: the name of the static member 1: the kind of the static member (field, getter, setter, or method) 2: the name of the defining class
    const CompileTimeErrorCode('INSTANCE_ACCESS_TO_STATIC_MEMBER', "Static {1} '{0}' can't be accessed through an instance.", correction: "Try using the class '{2}&#…
    INSTANCE_MEMBER_ACCESS_FROM_FACTORY → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INSTANCE_MEMBER_ACCESS_FROM_FACTORY', "Instance members can't be accessed from a factory constructor.", correction: "Try removing the reference t…
    INSTANCE_MEMBER_ACCESS_FROM_STATIC → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INSTANCE_MEMBER_ACCESS_FROM_STATIC', "Instance members can't be accessed from a static method.", correction: "Try removing the reference to the i…
    INSTANTIATE_ABSTRACT_CLASS → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INSTANTIATE_ABSTRACT_CLASS', "Abstract classes can't be instantiated.", correction: "Try creating an instance of a concrete subtype.", hasPu…
    INSTANTIATE_ENUM → const CompileTimeErrorCode
    Enum proposal: It is also a compile-time error to explicitly instantiate an enum via 'new' or 'const' or to access its private fields.
    const CompileTimeErrorCode('INSTANTIATE_ENUM', "Enums can't be instantiated.", correction: "Try using one of the defined constants.")
    INTEGER_LITERAL_IMPRECISE_AS_DOUBLE → const CompileTimeErrorCode
    An integer literal with static type double and numeric value i evaluates to an instance of the double class representing the value i. It is a compile-time error if the value i cannot be represented precisely by the an instace of double.
    const CompileTimeErrorCode('INTEGER_LITERAL_IMPRECISE_AS_DOUBLE', "The integer literal is being used as a double, but can't be " "represented as a 64 bit double without over…
    INTEGER_LITERAL_OUT_OF_RANGE → const CompileTimeErrorCode
    const CompileTimeErrorCode('INTEGER_LITERAL_OUT_OF_RANGE', "The integer literal {0} can't be represented in 64 bits.", correction: "Try using the BigInt class if you need an…
    INVALID_ANNOTATION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INVALID_ANNOTATION', "Annotation must be either a const variable reference or const " "constructor invocation.", hasPublishedDocs: true)
    INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    15 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. [...]
    const CompileTimeErrorCode('INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used as " "annotations.", correction: "Try…
    INVALID_ANNOTATION_GETTER → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCodeWithUniqueName('INVALID_ANNOTATION', 'INVALID_ANNOTATION_GETTER', "Getters can't be used as annotations.", correction: "Try using a top-lev…
    INVALID_ASSIGNMENT → const CompileTimeErrorCode
    Parameters: 0: the name of the right hand side type 1: the name of the left hand side type
    const CompileTimeErrorCode('INVALID_ASSIGNMENT', "A value of type '{0}' can't be assigned to a variable of type " "'{1}'.", correction: "Try changi…
    INVALID_CAST_FUNCTION → const CompileTimeErrorCode
    Parameters: 0: the type of the function 1: the expected function type
    const CompileTimeErrorCode('INVALID_CAST_FUNCTION', "The function '{0}' has type '{1}' that isn't of expected type " "'{2}'. This means its parameter…
    INVALID_CAST_FUNCTION_EXPR → const CompileTimeErrorCode
    Parameters: 0: the type of the torn-off function expression 1: the expected function type
    const CompileTimeErrorCode('INVALID_CAST_FUNCTION_EXPR', "The function expression type '{0}' isn't of type '{1}'. " "This means its parameter or return type …
    INVALID_CAST_LITERAL → const CompileTimeErrorCode
    Parameters: 0: the type of the literal 1: the expected type
    const CompileTimeErrorCode('INVALID_CAST_LITERAL', "The literal '{0}' with type '{1}' isn't of expected type '{2}'.")
    INVALID_CAST_LITERAL_LIST → const CompileTimeErrorCode
    Parameters: 0: the type of the list literal 1: the expected type
    const CompileTimeErrorCode('INVALID_CAST_LITERAL_LIST', "The list literal type '{0}' isn't of expected type '{1}'. The " "list's type can be changed with…
    INVALID_CAST_LITERAL_MAP → const CompileTimeErrorCode
    Parameters: 0: the type of the map literal 1: the expected type
    const CompileTimeErrorCode('INVALID_CAST_LITERAL_MAP', "The map literal type '{0}' isn't of expected type '{1}'. The maps's " "type can be changed with a…
    INVALID_CAST_LITERAL_SET → const CompileTimeErrorCode
    Parameters: 0: the type of the set literal 1: the expected type
    const CompileTimeErrorCode('INVALID_CAST_LITERAL_SET', "The set literal type '{0}' isn't of expected type '{1}'. The set's " "type can be changed with an…
    INVALID_CAST_METHOD → const CompileTimeErrorCode
    Parameters: 0: the type of the torn-off method 1: the expected function type
    const CompileTimeErrorCode('INVALID_CAST_METHOD', "The method tear-off '{0}' has type '{1}' that isn't of expected type " "'{2}'. This means its para…
    INVALID_CAST_NEW_EXPR → const CompileTimeErrorCode
    Parameters: 0: the type of the instantiated object 1: the expected type
    const CompileTimeErrorCode('INVALID_CAST_NEW_EXPR', "The constructor returns type '{0}' that isn't of expected type '{1}'.")
    INVALID_CONSTANT → const CompileTimeErrorCode
    TODO(brianwilkerson) Remove this when we have decided on how to report errors in compile-time constants. Until then, this acts as a placeholder for more informative errors. [...]
    const CompileTimeErrorCode('INVALID_CONSTANT', "Invalid constant value.")
    INVALID_CONSTRUCTOR_NAME → const CompileTimeErrorCode
    7.6 Constructors: It is a compile-time error if the name of a constructor is not a constructor name.
    const CompileTimeErrorCode('INVALID_CONSTRUCTOR_NAME', "Invalid constructor name.")
    INVALID_EXTENSION_ARGUMENT_COUNT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INVALID_EXTENSION_ARGUMENT_COUNT', "Extension overrides must have exactly one argument: " "the value of 'this' in the extension method."…
    INVALID_FACTORY_NAME_NOT_A_CLASS → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INVALID_FACTORY_NAME_NOT_A_CLASS', "The name of a factory constructor must be the same as the name of " "the immediately enclosing class.", hasP…
    INVALID_INLINE_FUNCTION_TYPE → const CompileTimeErrorCode
    const CompileTimeErrorCode('INVALID_INLINE_FUNCTION_TYPE', "Inline function types can't be used for parameters in a generic " "function type.", correction: "Try us…
    INVALID_MODIFIER_ON_CONSTRUCTOR → const CompileTimeErrorCode
  • Functions: It is a compile-time error if an async, async* or sync* modifier is attached to the body of a setter or constructor.
  • const CompileTimeErrorCode('INVALID_MODIFIER_ON_CONSTRUCTOR', "The modifier '{0}' can't be applied to the body of a constructor.", correction: "Try removing the modi…
    INVALID_MODIFIER_ON_SETTER → const CompileTimeErrorCode
  • Functions: It is a compile-time error if an async, async* or sync* modifier is attached to the body of a setter or constructor.
  • const CompileTimeErrorCode('INVALID_MODIFIER_ON_SETTER', "The modifier '{0}' can't be applied to the body of a setter.", correction: "Try removing the modifier."…
    INVALID_OVERRIDE → const CompileTimeErrorCode
    Parameters: 0: the name of the declared member that is not a valid override. 1: the name of the interface that declares the member. 2: the type of the declared member in the interface. [...]
    const CompileTimeErrorCode('INVALID_OVERRIDE', "'{1}.{0}' ('{2}') isn't a valid override of '{3}.{0}' ('{4}').", hasPublishedDocs: true)
    INVALID_REFERENCE_TO_THIS → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INVALID_REFERENCE_TO_THIS', "Invalid reference to 'this' expression.", hasPublishedDocs: true)
    INVALID_SUPER_INVOCATION → const CompileTimeErrorCode
    const CompileTimeErrorCode('INVALID_SUPER_INVOCATION', "The super call must be last in an initializer list: '{0}'.")
    INVALID_TYPE_ARGUMENT_IN_CONST_LIST → const CompileTimeErrorCode
    12.6 Lists: It is a compile time error if the type argument of a constant list literal includes a type parameter. [...]
    const CompileTimeErrorCodeWithUniqueName('INVALID_TYPE_ARGUMENT_IN_CONST_LITERAL', 'INVALID_TYPE_ARGUMENT_IN_CONST_LIST', "Constant list literals can't include a type paramete…
    INVALID_TYPE_ARGUMENT_IN_CONST_MAP → const CompileTimeErrorCode
    12.7 Maps: It is a compile time error if the type arguments of a constant map literal include a type parameter. [...]
    const CompileTimeErrorCodeWithUniqueName('INVALID_TYPE_ARGUMENT_IN_CONST_LITERAL', 'INVALID_TYPE_ARGUMENT_IN_CONST_MAP', "Constant map literals can't include a type parameter …
    INVALID_TYPE_ARGUMENT_IN_CONST_SET → const CompileTimeErrorCode
    Parameters: 0: the name of the type parameter
    const CompileTimeErrorCodeWithUniqueName('INVALID_TYPE_ARGUMENT_IN_CONST_LITERAL', 'INVALID_TYPE_ARGUMENT_IN_CONST_SET', "Constant set literals can't include a type parameter …
    INVALID_URI → const CompileTimeErrorCode
    Parameters: 0: the URI that is invalid
    const CompileTimeErrorCode('INVALID_URI', "Invalid URI syntax: '{0}'.", hasPublishedDocs: true)
    INVALID_USE_OF_COVARIANT → const CompileTimeErrorCode
    The 'covariant' keyword was found in an inappropriate location.
    const CompileTimeErrorCode('INVALID_USE_OF_COVARIANT', "The 'covariant' keyword can only be used for parameters in instance " "methods or before non-final instance field…
    INVALID_USE_OF_NULL_VALUE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INVALID_USE_OF_NULL_VALUE', "An expression whose value is always 'null' can't be dereferenced.", correction: "Try changing the type of th…
    INVOCATION_OF_EXTENSION_WITHOUT_CALL → const CompileTimeErrorCode
    Parameters: 0: the name of the extension
    const CompileTimeErrorCode('INVOCATION_OF_EXTENSION_WITHOUT_CALL', "The extension '{0}' doesn't define a 'call' method so the override " "can't be used i…
    INVOCATION_OF_NON_FUNCTION → const CompileTimeErrorCode
    Parameters: 0: the name of the identifier that is not a function type
    const CompileTimeErrorCode('INVOCATION_OF_NON_FUNCTION', "'{0}' isn't a function.", correction: "Try correcting the name to match an existing function, or " &qu…
    INVOCATION_OF_NON_FUNCTION_EXPRESSION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('INVOCATION_OF_NON_FUNCTION_EXPRESSION', "The expression doesn't evaluate to a function, so it can't be " "invoked.", hasPublishedDocs: t…
    LABEL_IN_OUTER_SCOPE → const CompileTimeErrorCode
    13.13 Break: It is a compile-time error if no such statement sE exists within the innermost function in which sb occurs. [...]
    const CompileTimeErrorCode('LABEL_IN_OUTER_SCOPE', "Can't reference label '{0}' declared in an outer method.")
    LABEL_UNDEFINED → const CompileTimeErrorCode
    13.13 Break: It is a compile-time error if no such statement sE exists within the innermost function in which sb occurs. [...]
    const CompileTimeErrorCode('LABEL_UNDEFINED', "Can't reference undefined label '{0}'.", correction: "Try defining the label, or " "correcting the name to m…
    LATE_FINAL_FIELD_WITH_CONST_CONSTRUCTOR → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('LATE_FINAL_FIELD_WITH_CONST_CONSTRUCTOR', "Can't have a late final field in a class with a const constructor.", correction: "Try removing the …
    LATE_FINAL_LOCAL_ALREADY_ASSIGNED → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('LATE_FINAL_LOCAL_ALREADY_ASSIGNED', "The late final local variable is already assigned.", correction: "Try removing the 'final' modifier, or …
    LIST_ELEMENT_TYPE_NOT_ASSIGNABLE → const CompileTimeErrorCode
    Parameters: 0: the actual type of the list element 1: the expected type of the list element
    const CompileTimeErrorCode('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', "The element type '{0}' can't be assigned to the list type '{1}'.", hasPublishedDocs: true)
    MAIN_FIRST_POSITIONAL_PARAMETER_TYPE → const CompileTimeErrorCode
    const CompileTimeErrorCode('MAIN_FIRST_POSITIONAL_PARAMETER_TYPE', "The type of the first positional parameter of the 'main' function " "must be a supertype of List<S…
    MAIN_HAS_REQUIRED_NAMED_PARAMETERS → const CompileTimeErrorCode
    const CompileTimeErrorCode('MAIN_HAS_REQUIRED_NAMED_PARAMETERS', "The function 'main' can't have any required named parameters.", correction: "Try using a different …
    MAIN_HAS_TOO_MANY_REQUIRED_POSITIONAL_PARAMETERS → const CompileTimeErrorCode
    const CompileTimeErrorCode('MAIN_HAS_TOO_MANY_REQUIRED_POSITIONAL_PARAMETERS', "The function 'main' can't have more than two required positional parameters.", correction:…
    MAIN_IS_NOT_FUNCTION → const CompileTimeErrorCode
    const CompileTimeErrorCode('MAIN_IS_NOT_FUNCTION', "The declaration named 'main' must be a function.", correction: "Try using a different name for this declaration."…
    MAP_ENTRY_NOT_IN_MAP → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('MAP_ENTRY_NOT_IN_MAP', "Map entries can only be used in a map literal.", correction: "Try converting the collection to a map or removing the map &quo…
    MAP_KEY_TYPE_NOT_ASSIGNABLE → const CompileTimeErrorCode
    Parameters: 0: the type of the expression being used as a key 1: the type of keys declared for the map
    const CompileTimeErrorCode('MAP_KEY_TYPE_NOT_ASSIGNABLE', "The element type '{0}' can't be assigned to the map key type " "'{1}'.", hasPublishedDocs: tr…
    MAP_VALUE_TYPE_NOT_ASSIGNABLE → const CompileTimeErrorCode
    Parameters: 0: the type of the expression being used as a value 1: the type of values declared for the map
    const CompileTimeErrorCode('MAP_VALUE_TYPE_NOT_ASSIGNABLE', "The element type '{0}' can't be assigned to the map value type " "'{1}'.", hasPublishedDocs…
    MISSING_CONST_IN_LIST_LITERAL → const CompileTimeErrorCode
    12.1 Constants: A constant expression is ... a constant list literal.
    const CompileTimeErrorCode('MISSING_CONST_IN_LIST_LITERAL', "List literals must be prefixed with 'const' when used as a constant " "expression.", correction: "…
    MISSING_CONST_IN_MAP_LITERAL → const CompileTimeErrorCode
    12.1 Constants: A constant expression is ... a constant map literal.
    const CompileTimeErrorCode('MISSING_CONST_IN_MAP_LITERAL', "Map literals must be prefixed with 'const' when used as a constant " "expression.", correction: "Tr…
    MISSING_CONST_IN_SET_LITERAL → const CompileTimeErrorCode
    12.1 Constants: A constant expression is ... a constant set literal.
    const CompileTimeErrorCode('MISSING_CONST_IN_SET_LITERAL', "Set literals must be prefixed with 'const' when used as a constant " "expression.", correction: "Tr…
    MISSING_DART_LIBRARY → const CompileTimeErrorCode
    const CompileTimeErrorCode('MISSING_DART_LIBRARY', "Required library '{0}' is missing.", correction: "Check your Dart SDK installation for completeness.")
    MISSING_DEFAULT_VALUE_FOR_PARAMETER → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('MISSING_DEFAULT_VALUE_FOR_PARAMETER', "The parameter '{0}' can't have a value of 'null' because of its " "type, and no non-null d…
    MISSING_REQUIRED_ARGUMENT → const CompileTimeErrorCode
    Parameters: 0: the name of the parameter
    const CompileTimeErrorCode('MISSING_REQUIRED_ARGUMENT', "The named parameter '{0}' is required, but there's no corresponding " "argument.", correction: "Tr…
    MIXIN_APPLICATION_CONCRETE_SUPER_INVOKED_MEMBER_TYPE → const CompileTimeErrorCode
    It's a compile-time error to apply a mixin containing super-invocations to a class that doesn't have a concrete implementation of the super-invoked members compatible with the super-constraint interface. [...]
    const CompileTimeErrorCode('MIXIN_APPLICATION_CONCRETE_SUPER_INVOKED_MEMBER_TYPE', "The super-invoked member '{0}' has the type '{1}', but the " "concrete member…
    MIXIN_APPLICATION_NO_CONCRETE_SUPER_INVOKED_MEMBER → const CompileTimeErrorCode
    It's a compile-time error to apply a mixin containing super-invocations to a class that doesn't have a concrete implementation of the super-invoked members compatible with the super-constraint interface. [...]
    const CompileTimeErrorCode('MIXIN_APPLICATION_NO_CONCRETE_SUPER_INVOKED_MEMBER', "The class doesn't have a concrete implementation of the " "super-invoked member '{0}…
    MIXIN_APPLICATION_NOT_IMPLEMENTED_INTERFACE → const CompileTimeErrorCode
    It's a compile-time error to apply a mixin to a class that doesn't implement all the on type requirements of the mixin declaration. [...]
    const CompileTimeErrorCode('MIXIN_APPLICATION_NOT_IMPLEMENTED_INTERFACE', "'{0}' can't be mixed onto '{1}' because '{1}' doesn't implement " "…
    MIXIN_CLASS_DECLARES_CONSTRUCTOR → const CompileTimeErrorCode
    9 Mixins: It is a compile-time error if a declared or derived mixin explicitly declares a constructor. [...]
    const CompileTimeErrorCode('MIXIN_CLASS_DECLARES_CONSTRUCTOR', "The class '{0}' can't be used as a mixin because it declares a " "constructor.")
    MIXIN_DECLARES_CONSTRUCTOR → const CompileTimeErrorCode
    The mixinMember production allows the same instance or static members that a class would allow, but no constructors (for now).
    const CompileTimeErrorCode('MIXIN_DECLARES_CONSTRUCTOR', "Mixins can't declare constructors.")
    MIXIN_DEFERRED_CLASS → const CompileTimeErrorCode
    9.1 Mixin Application: It is a compile-time error if the with clause of a mixin application C includes a deferred type expression. [...]
    const CompileTimeErrorCode('MIXIN_DEFERRED_CLASS', "Classes can't mixin deferred classes.", correction: "Try changing the import to not be deferred.")
    MIXIN_INFERENCE_INCONSISTENT_MATCHING_CLASSES → const CompileTimeErrorCode
    const CompileTimeErrorCode('MIXIN_INFERENCE_INCONSISTENT_MATCHING_CLASSES', "Type parameters couldn't be inferred for the mixin '{0}' because " "the base class imple…
    MIXIN_INFERENCE_NO_MATCHING_CLASS → const CompileTimeErrorCode
    const CompileTimeErrorCode('MIXIN_INFERENCE_NO_MATCHING_CLASS', "Type parameters couldn't be inferred for the mixin '{0}' because " "the base class doesn't imple…
    MIXIN_INFERENCE_NO_POSSIBLE_SUBSTITUTION → const CompileTimeErrorCode
    const CompileTimeErrorCode('MIXIN_INFERENCE_NO_POSSIBLE_SUBSTITUTION', "Type parameters couldn't be inferred for the mixin '{0}' because " "no type parameter substit…
    MIXIN_INHERITS_FROM_NOT_OBJECT → const CompileTimeErrorCode
    9 Mixins: It is a compile-time error if a mixin is derived from a class whose superclass is not Object. [...]
    const CompileTimeErrorCode('MIXIN_INHERITS_FROM_NOT_OBJECT', "The class '{0}' can't be used as a mixin because it extends a class " "other than Object.")
    MIXIN_INSTANTIATE → const CompileTimeErrorCode
    A mixin declaration introduces a mixin and an interface, but not a class.
    const CompileTimeErrorCode('MIXIN_INSTANTIATE', "Mixins can't be instantiated.")
    MIXIN_OF_DISALLOWED_CLASS → const CompileTimeErrorCode
    Parameters: 0: The name of the disallowed type
    const CompileTimeErrorCodeWithUniqueName('SUBTYPE_OF_DISALLOWED_TYPE', 'MIXIN_OF_DISALLOWED_CLASS', "Classes can't mixin '{0}'.", correction: "Try specifying…
    MIXIN_OF_NON_CLASS → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('MIXIN_OF_NON_CLASS', "Classes can only mix in mixins and classes.", hasPublishedDocs: true)
    MIXIN_SUPER_CLASS_CONSTRAINT_DEFERRED_CLASS → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('MIXIN_SUPER_CLASS_CONSTRAINT_DEFERRED_CLASS', "Deferred classes can't be used as super-class constraints.", correction: "Try changing the import …
    MIXIN_SUPER_CLASS_CONSTRAINT_DISALLOWED_CLASS → const CompileTimeErrorCode
    Parameters: 0: The name of the disallowed type
    const CompileTimeErrorCodeWithUniqueName('SUBTYPE_OF_DISALLOWED_TYPE', 'MIXIN_SUPER_CLASS_CONSTRAINT_DISALLOWED_CLASS', "''{0}' can't be used as a superclass const…
    MIXIN_SUPER_CLASS_CONSTRAINT_NON_INTERFACE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('MIXIN_SUPER_CLASS_CONSTRAINT_NON_INTERFACE', "Only classes and mixins can be used as superclass constraints.", hasPublishedDocs: true)
    MIXIN_WITH_NON_CLASS_SUPERCLASS → const CompileTimeErrorCode
    9.1 Mixin Application: It is a compile-time error if S does not denote a class available in the immediately enclosing scope.
    const CompileTimeErrorCode('MIXIN_WITH_NON_CLASS_SUPERCLASS', "Mixin can only be applied to class.")
    MIXINS_SUPER_CLASS → const CompileTimeErrorCode
    Technically this is IMPLEMENTS_SUPER_CLASS. See https://github.com/dart-lang/sdk/issues/25765#issuecomment-307422593 [...]
    const CompileTimeErrorCode('MIXINS_SUPER_CLASS', "'{0}' can't be used in both 'extends' and 'with' clauses.", correction: "Try removing one of the oc…
    MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS → const CompileTimeErrorCode
    7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its only action is to invoke another generative constructor.
    const CompileTimeErrorCode('MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS', "Constructors can have at most one 'this' redirection.", correction: "Try removing all but one…
    MULTIPLE_SUPER_INITIALIZERS → const CompileTimeErrorCode
    7.6.1 Generative Constructors: Let k be a generative constructor. Then k may include at most one superinitializer in its initializer list or a compile time error occurs.
    const CompileTimeErrorCode('MULTIPLE_SUPER_INITIALIZERS', "Constructor may have at most one 'super' initializer.", correction: "Try removing all but one of the 'supe…
    NEW_WITH_NON_TYPE → const CompileTimeErrorCode
    Parameters: 0: the name of the non-type element
    const CompileTimeErrorCodeWithUniqueName('CREATION_WITH_NON_TYPE', 'NEW_WITH_NON_TYPE', "The name '{0}' isn't a class.", correction: "Try correcting the name…
    NEW_WITH_UNDEFINED_CONSTRUCTOR → const CompileTimeErrorCode
    12.11.1 New: If T is a class or parameterized type accessible in the current scope then: [...]
    const CompileTimeErrorCode('NEW_WITH_UNDEFINED_CONSTRUCTOR', "The class '{0}' doesn't have a constructor named '{1}'.", correction: "Try invoking a different…
    NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT → const CompileTimeErrorCode
    Parameters: 0: the name of the class being instantiated
    const CompileTimeErrorCode('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', "The class '{0}' doesn't have a default constructor.", correction: "Try using one of the named c…
    NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS', "Annotation creation must have arguments.", correction: "Try adding an empty argument list.", hasPublished…
    NO_COMBINED_SUPER_SIGNATURE → const CompileTimeErrorCode
    Parameters: 0: the name of the class where override error was detected 1: the list of candidate signatures which cannot be combined
    const CompileTimeErrorCode('NO_COMBINED_SUPER_SIGNATURE', "Can't infer missing types in '{0}' from overridden methods: {1}.", correction: "Try providing explicit typ…
    NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT → const CompileTimeErrorCode
    Parameters: 0: the name of the superclass that does not define an implicitly invoked constructor
    const CompileTimeErrorCodeWithUniqueName('NO_DEFAULT_SUPER_CONSTRUCTOR', 'NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT', "The superclass '{0}' doesn't have a zero argument co…
    NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT → const CompileTimeErrorCode
    Parameters: 0: the name of the superclass that does not define an implicitly invoked constructor 1: the name of the subclass that does not contain any explicit constructors
    const CompileTimeErrorCodeWithUniqueName('NO_DEFAULT_SUPER_CONSTRUCTOR', 'NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT', "The superclass '{0}' doesn't have a zero argument co…
    NO_GENERATIVE_CONSTRUCTORS_IN_SUPERCLASS → const CompileTimeErrorCode
    User friendly specialized error for NON_GENERATIVE_CONSTRUCTOR. This handles the case of class E extends Exception which will never work because Exception has no generative constructors.
    const CompileTimeErrorCode('NO_GENERATIVE_CONSTRUCTOR_IN_SUPERCLASS', "The class '{0}' cannot extend '{1}' because '{1}' only has factory " "constructors…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS → const CompileTimeErrorCode
    Parameters: 0: the name of the first member 1: the name of the second member 2: the name of the third member 3: the name of the fourth member 4: the number of additional missing members that aren't listed
    const CompileTimeErrorCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS', "Missing concrete implementations …
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR → const CompileTimeErrorCode
    Parameters: 0: the name of the first member 1: the name of the second member 2: the name of the third member 3: the name of the fourth member
    const CompileTimeErrorCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', "Missing concrete implementations of &#…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE → const CompileTimeErrorCode
    Parameters: 0: the name of the member
    const CompileTimeErrorCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', "Missing concrete implementation of '…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE → const CompileTimeErrorCode
    Parameters: 0: the name of the first member 1: the name of the second member 2: the name of the third member
    const CompileTimeErrorCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE', "Missing concrete implementations of &…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO → const CompileTimeErrorCode
    Parameters: 0: the name of the first member 1: the name of the second member
    const CompileTimeErrorCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', "Missing concrete implementations of …
    NON_BOOL_CONDITION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_BOOL_CONDITION', "Conditions must have a static type of 'bool'.", correction: "Try changing the condition.", hasPublishedDocs: true)
    NON_BOOL_EXPRESSION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_BOOL_EXPRESSION', "The expression in an assert must be of type 'bool'.", correction: "Try changing the expression.", hasPublishedDoc…
    NON_BOOL_NEGATION_EXPRESSION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_BOOL_NEGATION_EXPRESSION', "A negation operand must have a static type of 'bool'.", correction: "Try changing the operand to the '!&#…
    NON_BOOL_OPERAND → const CompileTimeErrorCode
    Parameters: 0: the lexeme of the logical operator
    const CompileTimeErrorCode('NON_BOOL_OPERAND', "The operands of the operator '{0}' must be assignable to 'bool'.", hasPublishedDocs: true)
    NON_CONST_MAP_AS_EXPRESSION_STATEMENT → const CompileTimeErrorCode
    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.
    const CompileTimeErrorCode('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', "A non-constant map or set literal without type arguments can't be " "used as an expression statement.&qu…
    NON_CONSTANT_ANNOTATION_CONSTRUCTOR → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', "Annotation creation can only call a const constructor.", hasPublishedDocs: true)
    NON_CONSTANT_CASE_EXPRESSION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_CONSTANT_CASE_EXPRESSION', "Case expressions must be constant.", hasPublishedDocs: true)
    NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    13.9 Switch: Given a switch statement of the form switch (e) { label11 … label1j1 case e1: s1 … labeln1 … labelnjn case en: sn default: sn+1} or the form switch (e) { label11 … label1j1 case e1: s1 … labeln1 … labelnjn case en: sn}, it is a compile-time error if the expressions ek are not compile-time constants, for all 1 <= k <= n. [...]
    const CompileTimeErrorCode('NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used as a case " "expression.", corre…
    NON_CONSTANT_DEFAULT_VALUE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_CONSTANT_DEFAULT_VALUE', "The default value of an optional parameter must be constant.", hasPublishedDocs: true)
    NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    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. [...]
    const CompileTimeErrorCode('NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used as a default " "parameter value.",…
    NON_CONSTANT_LIST_ELEMENT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_CONSTANT_LIST_ELEMENT', "The values in a const list literal must be constants.", correction: "Try removing the keyword 'const' from the l…
    NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    12.6 Lists: It is a compile time error if an element of a constant list literal is not a compile-time constant. [...]
    const CompileTimeErrorCode('NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used as values in " "a 'const' list.&…
    NON_CONSTANT_MAP_ELEMENT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_CONSTANT_MAP_ELEMENT', "The elements in a const map literal must be constant.", correction: "Try removing the keyword 'const' from the ma…
    NON_CONSTANT_MAP_KEY → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_CONSTANT_MAP_KEY', "The keys in a const map literal must be constant.", correction: "Try removing the keyword 'const' from the map litera…
    NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    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. [...]
    const CompileTimeErrorCode('NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used as keys in a " "const map literal.", cor…
    NON_CONSTANT_MAP_VALUE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_CONSTANT_MAP_VALUE', "The values in a const map literal must be constant.", correction: "Try removing the keyword 'const' from the map li…
    NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    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. [...]
    const CompileTimeErrorCode('NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used as values in " "a const map literal.",…
    NON_CONSTANT_SET_ELEMENT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NON_CONSTANT_SET_ELEMENT', "The values in a const set literal must be constants.", correction: "Try removing the keyword 'const' from the set…
    NON_GENERATIVE_CONSTRUCTOR → const CompileTimeErrorCode
    7.6.1 Generative Constructors: Let C be the class in which the superinitializer appears and let S be the superclass of C. Let k be a generative constructor. It is a compile-time error if class S does not declare a generative constructor named S (respectively S.id) [...]
    const CompileTimeErrorCode('NON_GENERATIVE_CONSTRUCTOR', "The constructor '{0}' is a factory constructor, but must be a " "generative constructor to be a valid superinit…
    NON_GENERATIVE_IMPLICIT_CONSTRUCTOR → const CompileTimeErrorCode
    An error code for when a class has no explicit constructor, and therefore a constructor is implicitly defined which uses a factory as a superinitializer. See NON_GENERATIVE_CONSTRUCTOR. [...]
    const CompileTimeErrorCode('NON_GENERATIVE_IMPLICIT_CONSTRUCTOR', "The default constructor of superclass '{0}' (called by the implicit " "default constructor of '{1}…
    NON_SYNC_FACTORY → const CompileTimeErrorCode
    const CompileTimeErrorCode('NON_SYNC_FACTORY', "Factory bodies can't use 'async', 'async*', or 'sync*'.")
    NON_TYPE_AS_TYPE_ARGUMENT → const CompileTimeErrorCode
    Parameters: 0: the name appearing where a type is expected
    const CompileTimeErrorCode('NON_TYPE_AS_TYPE_ARGUMENT', "The name '{0}' isn't a type so it can't be used as a type argument.", correction: "Try correcting the na…
    NON_TYPE_IN_CATCH_CLAUSE → const CompileTimeErrorCode
    Parameters: 0: the name of the non-type element
    const CompileTimeErrorCode('NON_TYPE_IN_CATCH_CLAUSE', "The name '{0}' isn't a type and can't be used in an on-catch " "clause.", correction: "Try corr…
    NON_VOID_RETURN_FOR_OPERATOR → const CompileTimeErrorCode
    7.1.1 Operators: It is a static warning if the return type of the user-declared operator []= is explicitly declared and not void.
    const CompileTimeErrorCode('NON_VOID_RETURN_FOR_OPERATOR', "The return type of the operator []= must be 'void'.", correction: "Try changing the return type to 'void&…
    NON_VOID_RETURN_FOR_SETTER → const CompileTimeErrorCode
    7.3 Setters: It is a static warning if a setter declares a return type other than void.
    const CompileTimeErrorCode('NON_VOID_RETURN_FOR_SETTER', "The return type of the setter must be 'void' or absent.", correction: "Try removing the return type, or " …
    NOT_A_TYPE → const CompileTimeErrorCode
    Parameters: 0: the name that is not a type
    const CompileTimeErrorCode('NOT_A_TYPE', "{0} isn't a type.", correction: "Try correcting the name to match an existing type.", hasPublishedDocs: true)
    NOT_ASSIGNED_POTENTIALLY_NON_NULLABLE_LOCAL_VARIABLE → const CompileTimeErrorCode
    Parameters: 0: the name of the variable that is invalid
    const CompileTimeErrorCode('NOT_ASSIGNED_POTENTIALLY_NON_NULLABLE_LOCAL_VARIABLE', "The non-nullable local variable '{0}' must be assigned before it " "can be used."…
    NOT_ENOUGH_POSITIONAL_ARGUMENTS → const CompileTimeErrorCode
    Parameters: 0: the expected number of required arguments 1: the actual number of positional arguments given
    const CompileTimeErrorCode('NOT_ENOUGH_POSITIONAL_ARGUMENTS', "{0} positional argument(s) expected, but {1} found.", correction: "Try adding the missing arguments.", hasPub…
    NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD → const CompileTimeErrorCode
    Parameters: 0: the name of the field that is not initialized
    const CompileTimeErrorCode('NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD', "Non-nullable instance field '{0}' must be initialized.", correction: "Try adding an initialize…
    NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD_CONSTRUCTOR → const CompileTimeErrorCode
    Parameters: 0: the name of the field that is not initialized
    const CompileTimeErrorCodeWithUniqueName('NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD', 'NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD_CONSTRUCTOR', "Non-nullable instance field …
    NOT_INITIALIZED_NON_NULLABLE_VARIABLE → const CompileTimeErrorCode
    Parameters: 0: the name of the variable that is invalid
    const CompileTimeErrorCode('NOT_INITIALIZED_NON_NULLABLE_VARIABLE', "The non-nullable variable '{0}' must be initialized.", correction: "Try adding an initializer expres…
    NOT_INSTANTIATED_BOUND → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NOT_INSTANTIATED_BOUND', 'Type parameter bound types must be instantiated.', correction: 'Try adding type arguments to the type parameter bound.')
    NOT_ITERABLE_SPREAD → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NOT_ITERABLE_SPREAD', "Spread elements in list or set literals must implement 'Iterable'.", hasPublishedDocs: true)
    NOT_MAP_SPREAD → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NOT_MAP_SPREAD', "Spread elements in map literals must implement 'Map'.", hasPublishedDocs: true)
    NOT_NULL_AWARE_NULL_SPREAD → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NOT_NULL_AWARE_NULL_SPREAD', "The Null typed expression can't be used with a non-null-aware " "spread.")
    NULLABLE_TYPE_IN_EXTENDS_CLAUSE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NULLABLE_TYPE_IN_EXTENDS_CLAUSE', "A class can't extend a nullable type.", correction: "Try removing the question mark.", hasPublishedDocs: …
    NULLABLE_TYPE_IN_IMPLEMENTS_CLAUSE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NULLABLE_TYPE_IN_IMPLEMENTS_CLAUSE', "A class or mixin can't implement a nullable type.", correction: "Try removing the question mark.", has…
    NULLABLE_TYPE_IN_ON_CLAUSE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NULLABLE_TYPE_IN_ON_CLAUSE', "A mixin can't have a nullable type as a superclass constraint.", correction: "Try removing the question mark."…
    NULLABLE_TYPE_IN_WITH_CLAUSE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('NULLABLE_TYPE_IN_WITH_CLAUSE', "A class or mixin can't mix in a nullable type.", correction: "Try removing the question mark.", hasPublished…
    OBJECT_CANNOT_EXTEND_ANOTHER_CLASS → const CompileTimeErrorCode
    7.9 Superclasses: It is a compile-time error to specify an extends clause for class Object.
    const CompileTimeErrorCode('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', "The class 'Object' can't extend any other class.")
    ON_REPEATED → const CompileTimeErrorCode
    10.10 Superinterfaces: It is a compile-time error if two elements in the type list of the implements clause of a class C specifies the same type T. [...]
    const CompileTimeErrorCode('ON_REPEATED', "'{0}' can only be used in super-class constraints only once.", correction: "Try removing all but one occurrence of the class n…
    OPTIONAL_PARAMETER_IN_OPERATOR → const CompileTimeErrorCode
    7.1.1 Operators: It is a compile-time error to declare an optional parameter in an operator.
    const CompileTimeErrorCode('OPTIONAL_PARAMETER_IN_OPERATOR', "Optional parameters aren't allowed when defining an operator.", correction: "Try removing the optional paramete…
    PART_OF_DIFFERENT_LIBRARY → const CompileTimeErrorCode
    Parameters: 0: the name of expected library name 1: the non-matching actual library name from the "part of" declaration
    const CompileTimeErrorCode('PART_OF_DIFFERENT_LIBRARY', "Expected this library to be part of '{0}', not '{1}'.", correction: "Try including a different part, or …
    PART_OF_NON_PART → const CompileTimeErrorCode
    Parameters: 0: the uri pointing to a non-library declaration
    const CompileTimeErrorCode('PART_OF_NON_PART', "The included part '{0}' must have a part-of directive.", correction: "Try adding a part-of directive to '{0}'.&qu…
    PART_OF_UNNAMED_LIBRARY → const CompileTimeErrorCode
    Parts: It is a static warning if the referenced part declaration p names a library that does not have a library tag. [...]
    const CompileTimeErrorCode('PART_OF_UNNAMED_LIBRARY', "Library is unnamed. Expected a URI not a library name '{0}' in the " "part-of directive.", correction: "…
    PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER → const CompileTimeErrorCode
    Parameters: 0: The name of the prefix
    const CompileTimeErrorCode('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', "The name '{0}' is already used as an import prefix and can't be " "used to name a top-level elem…
    PREFIX_IDENTIFIER_NOT_FOLLOWED_BY_DOT → const CompileTimeErrorCode
    Parameters: 0: The name of the prefix
    const CompileTimeErrorCode('PREFIX_IDENTIFIER_NOT_FOLLOWED_BY_DOT', "The name '{0}' refers to an import prefix, so it must be followed " "by '.'.", correcti…
    PREFIX_SHADOWED_BY_LOCAL_DECLARATION → const CompileTimeErrorCode
    From the Static Types section of the spec: [...]
    const CompileTimeErrorCode('PREFIX_SHADOWED_BY_LOCAL_DECLARATION', "The prefix '{0}' can't be used here because it is shadowed by a " "local declaration.", corr…
    PRIVATE_COLLISION_IN_MIXIN_APPLICATION → const CompileTimeErrorCode
    It is an error for a mixin to add a private name that conflicts with a private name added by a superclass or another mixin.
    const CompileTimeErrorCode('PRIVATE_COLLISION_IN_MIXIN_APPLICATION', "The private name '{0}', defined by '{1}', " "conflicts with the same name defined by '{…
    PRIVATE_OPTIONAL_PARAMETER → const CompileTimeErrorCode
    6.2.2 Optional Formals: It is a compile-time error if the name of a named optional parameter begins with an '_' character.
    const CompileTimeErrorCode('PRIVATE_OPTIONAL_PARAMETER', "Named optional parameters can't start with an underscore.")
    PRIVATE_SETTER → const CompileTimeErrorCode
    const CompileTimeErrorCode('PRIVATE_SETTER', "The setter '{0}' is private and can't be accessed outside of the " "library that declares it.", correction: "…
    READ_POTENTIALLY_UNASSIGNED_FINAL → const CompileTimeErrorCode
    const CompileTimeErrorCode('READ_POTENTIALLY_UNASSIGNED_FINAL', "The final variable '{0}' can't be read because it is potentially " "unassigned at this point.",…
    RECURSIVE_COMPILE_TIME_CONSTANT → const CompileTimeErrorCode
    12.1 Constants: It is a compile-time error if the value of a compile-time constant expression depends on itself.
    const CompileTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', "Compile-time constant expression depends on itself.")
    RECURSIVE_CONSTRUCTOR_REDIRECT → const CompileTimeErrorCode
    7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its only action is to invoke another generative constructor. [...]
    const CompileTimeErrorCode('RECURSIVE_CONSTRUCTOR_REDIRECT', "Cycle in redirecting generative constructors.")
    RECURSIVE_FACTORY_REDIRECT → const CompileTimeErrorCode
    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.
    const CompileTimeErrorCode('RECURSIVE_FACTORY_REDIRECT', "Cycle in redirecting factory constructors.")
    RECURSIVE_INTERFACE_INHERITANCE → const CompileTimeErrorCode
    7.10 Superinterfaces: It is a compile-time error if the interface of a class C is a superinterface of itself. [...]
    const CompileTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE', "'{0}' can't be a superinterface of itself: {1}.")
    RECURSIVE_INTERFACE_INHERITANCE_EXTENDS → const CompileTimeErrorCode
    7.10 Superinterfaces: It is a compile-time error if the interface of a class C is a superinterface of itself. [...]
    const CompileTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE_EXTENDS', "'{0}' can't extend itself.")
    RECURSIVE_INTERFACE_INHERITANCE_IMPLEMENTS → const CompileTimeErrorCode
    7.10 Superinterfaces: It is a compile-time error if the interface of a class C is a superinterface of itself. [...]
    const CompileTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE_IMPLEMENTS', "'{0}' can't implement itself.")
    RECURSIVE_INTERFACE_INHERITANCE_ON → const CompileTimeErrorCode
    Parameters: 0: the name of the mixin that constraints itself recursively
    const CompileTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE_ON', "'{0}' can't use itself as a superclass constraint.")
    RECURSIVE_INTERFACE_INHERITANCE_WITH → const CompileTimeErrorCode
    7.10 Superinterfaces: It is a compile-time error if the interface of a class C is a superinterface of itself. [...]
    const CompileTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE_WITH', "'{0}' can't use itself as a mixin.")
    REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR → const CompileTimeErrorCode
    7.6.1 Generative constructors: A generative constructor may be redirecting, in which case its only action is to invoke another generative constructor.
    const CompileTimeErrorCode('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', "The constructor '{0}' couldn't be found in '{1}'.", correction: "Try redirecting to…
    REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR → const CompileTimeErrorCode
    7.6.1 Generative constructors: A generative constructor may be redirecting, in which case its only action is to invoke another generative constructor.
    const CompileTimeErrorCode('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR', "Generative constructor can't redirect to a factory constructor.", correction: "Try redirecti…
    REDIRECT_TO_ABSTRACT_CLASS_CONSTRUCTOR → const CompileTimeErrorCode
    A factory constructor can't redirect to a non-generative constructor of an abstract class.
    const CompileTimeErrorCode('REDIRECT_TO_ABSTRACT_CLASS_CONSTRUCTOR', "The redirecting constructor '{0}' can't redirect to a constructor " "of the abstract class '…
    REDIRECT_TO_INVALID_FUNCTION_TYPE → const CompileTimeErrorCode
    Parameters: 0: the name of the redirected constructor 1: the name of the redirecting constructor
    const CompileTimeErrorCode('REDIRECT_TO_INVALID_FUNCTION_TYPE', "The redirected constructor '{0}' has incompatible parameters with " "'{1}'.", correction: &…
    REDIRECT_TO_INVALID_RETURN_TYPE → const CompileTimeErrorCode
    Parameters: 0: the name of the redirected constructor's return type 1: the name of the redirecting constructor's return type
    const CompileTimeErrorCode('REDIRECT_TO_INVALID_RETURN_TYPE', "The return type '{0}' of the redirected constructor isn't " "a subtype of '{1}'.", correc…
    REDIRECT_TO_MISSING_CONSTRUCTOR → const CompileTimeErrorCode
    7.6.2 Factories: It is a compile-time error if k is prefixed with the const modifier but k' is not a constant constructor.
    const CompileTimeErrorCode('REDIRECT_TO_MISSING_CONSTRUCTOR', "The constructor '{0}' couldn't be found in '{1}'.", correction: "Try redirecting to a differen…
    REDIRECT_TO_NON_CLASS → const CompileTimeErrorCode
    Parameters: 0: the name of the non-type referenced in the redirect
    const CompileTimeErrorCode('REDIRECT_TO_NON_CLASS', "The name '{0}' isn't a type and can't be used in a redirected " "constructor.", correction: "Try r…
    REDIRECT_TO_NON_CONST_CONSTRUCTOR → const CompileTimeErrorCode
    7.6.2 Factories: It is a compile-time error if k is prefixed with the const modifier but k' is not a constant constructor.
    const CompileTimeErrorCode('REDIRECT_TO_NON_CONST_CONSTRUCTOR', "Constant redirecting constructor can't redirect to a non-constant " "constructor.", correction: "T…
    REFERENCED_BEFORE_DECLARATION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('REFERENCED_BEFORE_DECLARATION', "Local variable '{0}' can't be referenced before it is declared.", correction: "Try moving the declaratio…
    RETHROW_OUTSIDE_CATCH → const CompileTimeErrorCode
    12.8.1 Rethrow: It is a compile-time error if an expression of the form rethrow; is not enclosed within a on-catch clause.
    const CompileTimeErrorCode('RETHROW_OUTSIDE_CATCH', "Rethrow must be inside of catch clause.", correction: "Try moving the expression into a catch clause, or using a " &quo…
    RETURN_IN_GENERATIVE_CONSTRUCTOR → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('RETURN_IN_GENERATIVE_CONSTRUCTOR', "Constructors can't return values.", correction: "Try removing the return statement or using a factory " …
    RETURN_IN_GENERATOR → const CompileTimeErrorCode
    13.12 Return: It is a compile-time error if a return statement of the form return e; appears in a generator function.
    const CompileTimeErrorCode('RETURN_IN_GENERATOR', "Can't return a value from a generator function (using the '{0}' " "modifier).", correction: "Try removin…
    RETURN_OF_INVALID_TYPE_FROM_CLOSURE → const CompileTimeErrorCode
    Parameters: 0: the return type as declared in the return statement 1: the expected return type as defined by the method
    const CompileTimeErrorCode('RETURN_OF_INVALID_TYPE_FROM_CLOSURE', "The return type '{0}' isn't a '{1}', as required by the closure's " "context.", h…
    RETURN_OF_INVALID_TYPE_FROM_CONSTRUCTOR → const CompileTimeErrorCode
    Parameters: 0: the return type as declared in the return statement 1: the expected return type as defined by the enclosing class 2: the name of the constructor
    const CompileTimeErrorCodeWithUniqueName('RETURN_OF_INVALID_TYPE', 'RETURN_OF_INVALID_TYPE_FROM_CONSTRUCTOR', "A value of type '{0}' can't be returned from constructor…
    RETURN_OF_INVALID_TYPE_FROM_FUNCTION → const CompileTimeErrorCode
    Parameters: 0: the return type as declared in the return statement 1: the expected return type as defined by the method 2: the name of the method
    const CompileTimeErrorCodeWithUniqueName('RETURN_OF_INVALID_TYPE', 'RETURN_OF_INVALID_TYPE_FROM_FUNCTION', "A value of type '{0}' can't be returned from function '…
    RETURN_OF_INVALID_TYPE_FROM_METHOD → const CompileTimeErrorCode
    Parameters: 0: the return type as declared in the return statement 1: the expected return type as defined by the method 2: the name of the method
    const CompileTimeErrorCodeWithUniqueName('RETURN_OF_INVALID_TYPE', 'RETURN_OF_INVALID_TYPE_FROM_METHOD', "A value of type '{0}' can't be returned from method '{2}&…
    RETURN_WITHOUT_VALUE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('RETURN_WITHOUT_VALUE', "The return value is missing after 'return'.", hasPublishedDocs: true)
    SET_ELEMENT_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    const CompileTimeErrorCode('SET_ELEMENT_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be used as values in " "a const set.", correction: "…
    SET_ELEMENT_TYPE_NOT_ASSIGNABLE → const CompileTimeErrorCode
    Parameters: 0: the actual type of the set element 1: the expected type of the set element
    const CompileTimeErrorCode('SET_ELEMENT_TYPE_NOT_ASSIGNABLE', "The element type '{0}' can't be assigned to the set type '{1}'.")
    SHARED_DEFERRED_PREFIX → const CompileTimeErrorCode
    14.1 Imports: It is a compile-time error if a prefix used in a deferred import is used in another import clause.
    const CompileTimeErrorCode('SHARED_DEFERRED_PREFIX', "The prefix of a deferred import can't be used in other import " "directives.", correction: "Try renaming one …
    SPREAD_EXPRESSION_FROM_DEFERRED_LIBRARY → const CompileTimeErrorCode
    const CompileTimeErrorCode('SPREAD_EXPRESSION_FROM_DEFERRED_LIBRARY', "Constant values from a deferred library can't be spread into a " "const literal.", correction: &q…
    STATIC_ACCESS_TO_INSTANCE_MEMBER → const CompileTimeErrorCode
    Parameters: 0: the name of the instance member
    const CompileTimeErrorCode('STATIC_ACCESS_TO_INSTANCE_MEMBER', "Instance member '{0}' can't be accessed using static access.", hasPublishedDocs: true)
    SUPER_IN_EXTENSION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('SUPER_IN_EXTENSION', "The 'super' keyword can't be used in an extension because an " "extension doesn't have a superclass.", has…
    SUPER_IN_INVALID_CONTEXT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('SUPER_IN_INVALID_CONTEXT', "Invalid context for 'super' invocation.", hasPublishedDocs: true)
    SUPER_IN_REDIRECTING_CONSTRUCTOR → const CompileTimeErrorCode
    7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its only action is to invoke another generative constructor.
    const CompileTimeErrorCode('SUPER_IN_REDIRECTING_CONSTRUCTOR', "The redirecting constructor can't have a 'super' initializer.")
    SUPER_INITIALIZER_IN_OBJECT → const CompileTimeErrorCode
    7.6.1 Generative Constructors: Let k be a generative constructor. It is a compile-time error if a generative constructor of class Object includes a superinitializer.
    const CompileTimeErrorCode('SUPER_INITIALIZER_IN_OBJECT', "The class 'Object' can't invoke a constructor from a superclass.")
    SWITCH_CASE_COMPLETES_NORMALLY → const CompileTimeErrorCode
    It is an error if any case of a switch statement except the last case (the default case if present) may complete normally. The previous syntactic restriction requiring the last statement of each case to be one of an enumerated list of statements (break, continue, return, throw, or rethrow) is removed.
    const CompileTimeErrorCode('SWITCH_CASE_COMPLETES_NORMALLY', "The 'case' should not complete normally.", correction: "Try adding 'break', or 'return', et…
    SWITCH_EXPRESSION_NOT_ASSIGNABLE → const CompileTimeErrorCode
    Parameters: 0: The static type of the switch expression 1: The static type of the case expressions
    const CompileTimeErrorCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', "Type '{0}' of the switch expression isn't assignable to " "the type '{1}' of case expressions…
    THROW_OF_INVALID_TYPE → const CompileTimeErrorCode
    Parameters: 0: the type that can't be thrown
    const CompileTimeErrorCode('THROW_OF_INVALID_TYPE', "The type '{0}' of the thrown expression must be assignable to 'Object'.", hasPublishedDocs: true)
    TOP_LEVEL_CYCLE → const CompileTimeErrorCode
    Parameters: 0: the element whose type could not be inferred. 1: The TopLevelInferenceError's arguments that led to the cycle.
    const CompileTimeErrorCode('TOP_LEVEL_CYCLE', "The type of '{0}' can't be inferred because it depends on itself " "through the cycle: {1}.", correction: "T…
    TYPE_ALIAS_CANNOT_REFERENCE_ITSELF → const CompileTimeErrorCode
    15.3.1 Typedef: Any self reference, either directly, or recursively via another typedef, is a compile time error.
    const CompileTimeErrorCode('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', "Typedefs can't reference themselves directly or recursively via " "another typedef.")
    TYPE_ANNOTATION_DEFERRED_CLASS → const CompileTimeErrorCode
    15.1 Static Types: It is a static warning to use a deferred type in a type annotation. [...]
    const CompileTimeErrorCode('TYPE_ANNOTATION_DEFERRED_CLASS', "The deferred type '{0}' can't be used in a declaration, cast or " "type test.", correction: "…
    TYPE_ARGUMENT_NOT_MATCHING_BOUNDS → const CompileTimeErrorCode
    Parameters: 0: the name of the type used in the instance creation that should be limited by the bound as specified in the class declaration 1: the name of the bounding type
    const CompileTimeErrorCode('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', "'{0}' doesn't extend '{1}'.", correction: "Try using a type that is or is a subclass of '…
    TYPE_PARAMETER_REFERENCED_BY_STATIC → const CompileTimeErrorCode
    10 Generics: However, a type parameter is considered to be a malformed type when referenced by a static member. [...]
    const CompileTimeErrorCode('TYPE_PARAMETER_REFERENCED_BY_STATIC', "Static members can't reference type parameters of the class.", correction: "Try removing the reference to …
    TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND → const CompileTimeErrorCode
    10 Generics: It is a static type warning if a type parameter is a supertype of its upper bound. [...]
    const CompileTimeErrorCode('TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND', "'{0}' can't be a supertype of its upper bound.", correction: "Try using a type that is or is a s…
    TYPE_TEST_WITH_NON_TYPE → const CompileTimeErrorCode
    12.31 Type Test: It is a static warning if T does not denote a type available in the current lexical scope.
    const CompileTimeErrorCode('TYPE_TEST_WITH_NON_TYPE', "The name '{0}' isn't a type and can't be used in an 'is' " "expression.", correction: "T…
    TYPE_TEST_WITH_UNDEFINED_NAME → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('TYPE_TEST_WITH_UNDEFINED_NAME', "The name '{0}' isn't defined, so it can't be used in an 'is' " "expression.", correctio…
    UNCHECKED_USE_OF_NULLABLE_VALUE → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('UNCHECKED_USE_OF_NULLABLE_VALUE', "An expression whose value can be 'null' must be null-checked before " "it can be dereferenced.", corr…
    UNDEFINED_ANNOTATION → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('UNDEFINED_ANNOTATION', "Undefined name '{0}' used as an annotation.", correction: "Try defining the name or importing it from another library…
    UNDEFINED_CLASS → const CompileTimeErrorCode
    Parameters: 0: the name of the undefined class
    const CompileTimeErrorCode('UNDEFINED_CLASS', "Undefined class '{0}'.", correction: "Try changing the name to the name of an existing class, or " "creating a c…
    UNDEFINED_CLASS_BOOLEAN → const CompileTimeErrorCode
    Same as CompileTimeErrorCode.UNDEFINED_CLASS, but to catch using "boolean" instead of "bool".
    const CompileTimeErrorCode('UNDEFINED_CLASS_BOOLEAN', "Undefined class 'boolean'.", correction: "Try using the type 'bool'.")
    UNDEFINED_CONSTRUCTOR_IN_INITIALIZER → const CompileTimeErrorCode
    Parameters: 0: the name of the superclass that does not define the invoked constructor 1: the name of the constructor being invoked
    const CompileTimeErrorCode('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', "The class '{0}' doesn't have a constructor named '{1}'.", correction: "Try defining a con…
    UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT → const CompileTimeErrorCode
    Parameters: 0: the name of the superclass that does not define the invoked constructor
    const CompileTimeErrorCodeWithUniqueName('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 'UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT', "The class '{0}' doesn't have an unnam…
    UNDEFINED_ENUM_CONSTANT → const CompileTimeErrorCode
    Parameters: 0: the name of the enumeration constant that is not defined 1: the name of the enumeration used to access the constant
    const CompileTimeErrorCode('UNDEFINED_ENUM_CONSTANT', "There's no constant named '{0}' in '{1}'.", correction: "Try correcting the name to the name of an exi…
    UNDEFINED_EXTENSION_GETTER → const CompileTimeErrorCode
    Parameters: 0: the name of the getter that is undefined 1: the name of the extension that was explicitly specified
    const CompileTimeErrorCode('UNDEFINED_EXTENSION_GETTER', "The getter '{0}' isn't defined for the extension '{1}'.", correction: "Try correcting the name to t…
    UNDEFINED_EXTENSION_METHOD → const CompileTimeErrorCode
    Parameters: 0: the name of the method that is undefined 1: the name of the extension that was explicitly specified
    const CompileTimeErrorCode('UNDEFINED_EXTENSION_METHOD', "The method '{0}' isn't defined for the extension '{1}'.", correction: "Try correcting the name to t…
    UNDEFINED_EXTENSION_OPERATOR → const CompileTimeErrorCode
    Parameters: 0: the name of the operator that is undefined 1: the name of the extension that was explicitly specified
    const CompileTimeErrorCode('UNDEFINED_EXTENSION_OPERATOR', "The operator '{0}' isn't defined for the extension '{1}'.", correction: "Try defining the operato…
    UNDEFINED_EXTENSION_SETTER → const CompileTimeErrorCode
    Parameters: 0: the name of the setter that is undefined 1: the name of the extension that was explicitly specified
    const CompileTimeErrorCode('UNDEFINED_EXTENSION_SETTER', "The setter '{0}' isn't defined for the extension '{1}'.", correction: "Try correcting the name to t…
    UNDEFINED_FUNCTION → const CompileTimeErrorCode
    Parameters: 0: the name of the method that is undefined
    const CompileTimeErrorCode('UNDEFINED_FUNCTION', "The function '{0}' isn't defined.", correction: "Try importing the library that defines '{0}', " "…
    UNDEFINED_GETTER → const CompileTimeErrorCode
    Parameters: 0: the name of the getter 1: the name of the enclosing type where the getter is being looked for
    const CompileTimeErrorCode('UNDEFINED_GETTER', "The getter '{0}' isn't defined for the type '{1}'.", correction: "Try importing the library that defines '…
    UNDEFINED_IDENTIFIER → const CompileTimeErrorCode
    Parameters: 0: the name of the identifier
    const CompileTimeErrorCode('UNDEFINED_IDENTIFIER', "Undefined name '{0}'.", correction: "Try correcting the name to one that is defined, or " "defining the nam…
    UNDEFINED_IDENTIFIER_AWAIT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('UNDEFINED_IDENTIFIER_AWAIT', "Undefined name 'await' in function body not marked with 'async'.", correction: "Try correcting the name…
    UNDEFINED_METHOD → const CompileTimeErrorCode
    Parameters: 0: the name of the method that is undefined 1: the resolved type name that the method lookup is happening on
    const CompileTimeErrorCode('UNDEFINED_METHOD', "The method '{0}' isn't defined for the type '{1}'.", correction: "Try correcting the name to the name of an e…
    UNDEFINED_NAMED_PARAMETER → const CompileTimeErrorCode
    Parameters: 0: the name of the requested named parameter
    const CompileTimeErrorCode('UNDEFINED_NAMED_PARAMETER', "The named parameter '{0}' isn't defined.", correction: "Try correcting the name to an existing named paramet…
    UNDEFINED_OPERATOR → const CompileTimeErrorCode
    Parameters: 0: the name of the operator 1: the name of the enclosing type where the operator is being looked for
    const CompileTimeErrorCode('UNDEFINED_OPERATOR', "The operator '{0}' isn't defined for the type '{1}'.", correction: "Try defining the operator '{0}'…
    UNDEFINED_PREFIXED_NAME → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('UNDEFINED_PREFIXED_NAME', "The name '{0}' is being referenced through the prefix '{1}', but it " "isn't defined in any of the lib…
    UNDEFINED_SETTER → const CompileTimeErrorCode
    Parameters: 0: the name of the setter 1: the name of the enclosing type where the setter is being looked for
    const CompileTimeErrorCode('UNDEFINED_SETTER', "The setter '{0}' isn't defined for the type '{1}'.", correction: "Try importing the library that defines '…
    UNDEFINED_SUPER_GETTER → const CompileTimeErrorCode
    Parameters: 0: the name of the getter 1: the name of the enclosing type where the getter is being looked for
    const CompileTimeErrorCodeWithUniqueName('UNDEFINED_SUPER_MEMBER', 'UNDEFINED_SUPER_GETTER', "The getter '{0}' isn't defined in a superclass of '{1}'.", c…
    UNDEFINED_SUPER_METHOD → const CompileTimeErrorCode
    Parameters: 0: the name of the method that is undefined 1: the resolved type name that the method lookup is happening on
    const CompileTimeErrorCodeWithUniqueName('UNDEFINED_SUPER_MEMBER', 'UNDEFINED_SUPER_METHOD', "The method '{0}' isn't defined in a superclass of '{1}'.", c…
    UNDEFINED_SUPER_OPERATOR → const CompileTimeErrorCode
    Parameters: 0: the name of the operator 1: the name of the enclosing type where the operator is being looked for
    const CompileTimeErrorCodeWithUniqueName('UNDEFINED_SUPER_MEMBER', 'UNDEFINED_SUPER_OPERATOR', "The operator '{0}' isn't defined in a superclass of '{1}'."…
    UNDEFINED_SUPER_SETTER → const CompileTimeErrorCode
    Parameters: 0: the name of the setter 1: the name of the enclosing type where the setter is being looked for
    const CompileTimeErrorCodeWithUniqueName('UNDEFINED_SUPER_MEMBER', 'UNDEFINED_SUPER_SETTER', "The setter '{0}' isn't defined in a superclass of '{1}'.", c…
    UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER → const CompileTimeErrorCode
    12.15.1 Ordinary Invocation: It is a static type warning if T does not have an accessible (3.2) instance member named m. [...]
    const CompileTimeErrorCode('UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER', "Static members from supertypes must be qualified by the name of the " "defining type.", corr…
    UNQUALIFIED_REFERENCE_TO_STATIC_MEMBER_OF_EXTENDED_TYPE → const CompileTimeErrorCode
    Parameters: 0: the name of the defining type
    const CompileTimeErrorCode('UNQUALIFIED_REFERENCE_TO_STATIC_MEMBER_OF_EXTENDED_TYPE', "Static members from the extended type or one of its superclasses " "must be qualified by t…
    URI_DOES_NOT_EXIST → const CompileTimeErrorCode
    Parameters: 0: the URI pointing to a non-existent file
    const CompileTimeErrorCode('URI_DOES_NOT_EXIST', "Target of URI doesn't exist: '{0}'.", correction: "Try creating the file referenced by the URI, or " "Try…
    URI_HAS_NOT_BEEN_GENERATED → const CompileTimeErrorCode
    Parameters: 0: the URI pointing to a non-existent file
    const CompileTimeErrorCode('URI_HAS_NOT_BEEN_GENERATED', "Target of URI hasn't been generated: '{0}'.", correction: "Try running the generator that will generate the…
    URI_WITH_INTERPOLATION → const CompileTimeErrorCode
    14.1 Imports: It is a compile-time error if x is not a compile-time constant, or if x involves string interpolation. [...]
    const CompileTimeErrorCode('URI_WITH_INTERPOLATION', "URIs can't use string interpolation.")
    USE_OF_VOID_RESULT → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('USE_OF_VOID_RESULT', "This expression has a type of 'void' so its value can't be used.", correction: "Try checking to see if you're u…
    VARIABLE_TYPE_MISMATCH → const CompileTimeErrorCode
    Parameters: 0: the type of the object being assigned. 1: the type of the variable being assigned to
    const CompileTimeErrorCode('VARIABLE_TYPE_MISMATCH', "A value of type '{0}' can't be assigned to a const variable of type " "'{1}'.", correction: "…
    WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE → const CompileTimeErrorCode
    Let C be a generic class that declares a formal type parameter X, and assume that T is a direct superinterface of C. [...]
    const CompileTimeErrorCode('WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE', "'{0}' is an '{1}' type parameter and can't be used in an '{2}' position…
    WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR → const CompileTimeErrorCode
    Parameters: 0: the name of the declared operator 1: the number of parameters expected 2: the number of parameters found in the operator declaration
    const CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', "Operator '{0}' should declare exactly {1} parameters, but {2} " "found.", hasPublishedDocs: t…
    WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS → const CompileTimeErrorCode
    7.1.1 Operators: It is a compile time error if the arity of the user-declared operator - is not 0 or 1. [...]
    const CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS', "Operator '-' should declare 0 or 1 parameter, but {0} found.")
    WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER → const CompileTimeErrorCode
    No parameters.
    const CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', "Setters must declare exactly one required positional parameter.", hasPublishedDocs: true)
    WRONG_NUMBER_OF_TYPE_ARGUMENTS → const CompileTimeErrorCode
    Parameters: 0: the name of the type being referenced (G) 1: the number of type parameters that were declared 2: the number of type arguments provided
    const CompileTimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', "The type '{0}' is declared with {1} type parameters, " "but {2} type arguments were given.", correctio…
    WRONG_NUMBER_OF_TYPE_ARGUMENTS_CONSTRUCTOR → const CompileTimeErrorCode
    It will be a static type warning if m is not a generic method with exactly n type parameters. [...]
    const CompileTimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS_CONSTRUCTOR', "The constructor '{0}.{1}' doesn't have type parameters.", correction: "Try moving type argu…
    WRONG_NUMBER_OF_TYPE_ARGUMENTS_EXTENSION → const CompileTimeErrorCode
    Parameters: 0: the name of the extension being referenced 1: the number of type parameters that were declared 2: the number of type arguments provided
    const CompileTimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS_EXTENSION', "The extension '{0}' is declared with {1} type parameters, " "but {2} type arguments were given.&q…
    WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD → const CompileTimeErrorCode
    Parameters: 0: the name of the method being referenced (G) 1: the number of type parameters that were declared 2: the number of type arguments provided
    const CompileTimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD', "The method '{0}' is declared with {1} type parameters, but {2} type " "arguments are given.", c…
    WRONG_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE → const CompileTimeErrorCode
    Let C be a generic class that declares a formal type parameter X, and assume that T is a direct superinterface of C. It is a compile-time error if X occurs contravariantly or invariantly in T.
    const CompileTimeErrorCode('WRONG_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE', "'{0}' can't be used contravariantly or invariantly in '{1}'.", correction: "Tr…
    WRONG_TYPE_PARAMETER_VARIANCE_POSITION → const CompileTimeErrorCode
    Let C be a generic class that declares a formal type parameter X. [...]
    const CompileTimeErrorCode('WRONG_TYPE_PARAMETER_VARIANCE_POSITION', "The '{0}' type parameter '{1}' can't be used in an '{2}' position.", correction: &qu…
    YIELD_EACH_IN_NON_GENERATOR → const CompileTimeErrorCode
    ?? Yield: It is a compile-time error if a yield statement appears in a function that is not a generator function.
    const CompileTimeErrorCode('YIELD_EACH_IN_NON_GENERATOR', "Yield-each statements must be in a generator function " "(one marked with either 'async*' or 'sync*').…
    YIELD_IN_NON_GENERATOR → const CompileTimeErrorCode
    ?? Yield: It is a compile-time error if a yield statement appears in a function that is not a generator function.
    const CompileTimeErrorCode('YIELD_IN_NON_GENERATOR', "Yield statements must be in a generator function " "(one marked with either 'async*' or 'sync*').", co…
    YIELD_OF_INVALID_TYPE → const CompileTimeErrorCode
    17.16.1 Yield: Let T be the static type of e the expression to the right of "yield" and let f be the immediately enclosing function. It is a static type warning if either: [...]
    const CompileTimeErrorCode('YIELD_OF_INVALID_TYPE', "The type '{0}' implied by the 'yield' expression must be assignable " "to '{1}'.")