| Index: pkg/analyzer/lib/src/generated/error.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
|
| index 7ddeed37c6ccbdcf2667a86fb0aea931f52c1c0b..f8b369c43733001bb37d3e92edf591f2fd440452 100644
|
| --- a/pkg/analyzer/lib/src/generated/error.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error.dart
|
| @@ -4926,7 +4926,7 @@ class StaticWarningCode extends ErrorCode {
|
| */
|
| static const StaticWarningCode FINAL_NOT_INITIALIZED =
|
| const StaticWarningCode('FINAL_NOT_INITIALIZED',
|
| - "The final variable '{0}' must be initialized");
|
| + "The final variable '{0}' must be initialized", null, false);
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Each final instance variable <i>f</i>
|
| @@ -4942,7 +4942,7 @@ class StaticWarningCode extends ErrorCode {
|
| */
|
| static const StaticWarningCode FINAL_NOT_INITIALIZED_CONSTRUCTOR_1 =
|
| const StaticWarningCode('FINAL_NOT_INITIALIZED_CONSTRUCTOR_1',
|
| - "The final variable '{0}' must be initialized");
|
| + "The final variable '{0}' must be initialized", null, false);
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Each final instance variable <i>f</i>
|
| @@ -4958,8 +4958,11 @@ class StaticWarningCode extends ErrorCode {
|
| * 1: the name of the uninitialized final variable
|
| */
|
| static const StaticWarningCode FINAL_NOT_INITIALIZED_CONSTRUCTOR_2 =
|
| - const StaticWarningCode('FINAL_NOT_INITIALIZED_CONSTRUCTOR_2',
|
| - "The final variables '{0}' and '{1}' must be initialized");
|
| + const StaticWarningCode(
|
| + 'FINAL_NOT_INITIALIZED_CONSTRUCTOR_2',
|
| + "The final variables '{0}' and '{1}' must be initialized",
|
| + null,
|
| + false);
|
|
|
| /**
|
| * 7.6.1 Generative Constructors: Each final instance variable <i>f</i>
|
| @@ -4976,8 +4979,11 @@ class StaticWarningCode extends ErrorCode {
|
| * 2: the number of additional not initialized variables that aren't listed
|
| */
|
| static const StaticWarningCode FINAL_NOT_INITIALIZED_CONSTRUCTOR_3_PLUS =
|
| - const StaticWarningCode('FINAL_NOT_INITIALIZED_CONSTRUCTOR_3',
|
| - "The final variables '{0}', '{1}' and '{2}' more must be initialized");
|
| + const StaticWarningCode(
|
| + 'FINAL_NOT_INITIALIZED_CONSTRUCTOR_3',
|
| + "The final variables '{0}', '{1}' and '{2}' more must be initialized",
|
| + null,
|
| + false);
|
|
|
| /**
|
| * 15.5 Function Types: It is a static warning if a concrete class implements
|
| @@ -5298,8 +5304,11 @@ class StaticWarningCode extends ErrorCode {
|
| * <i>S</i>, and <i>T</i> may not be assigned to <i>S</i>.
|
| */
|
| static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES =
|
| - const StaticWarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES',
|
| - "The parameter type for setter '{0}' is '{1}' which is not assignable to its getter (of type '{2}')");
|
| + const StaticWarningCode(
|
| + 'MISMATCHED_GETTER_AND_SETTER_TYPES',
|
| + "The parameter type for setter '{0}' is '{1}' which is not assignable to its getter (of type '{2}')",
|
| + null,
|
| + false);
|
|
|
| /**
|
| * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
|
| @@ -5310,7 +5319,9 @@ class StaticWarningCode extends ErrorCode {
|
| MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPERTYPE =
|
| const StaticWarningCode(
|
| 'MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPERTYPE',
|
| - "The parameter type for setter '{0}' is '{1}' which is not assignable to its getter (of type '{2}'), from superclass '{3}'");
|
| + "The parameter type for setter '{0}' is '{1}' which is not assignable to its getter (of type '{2}'), from superclass '{3}'",
|
| + null,
|
| + false);
|
|
|
| /**
|
| * 13.12 Return: It is a static warning if a function contains both one or
|
| @@ -5319,7 +5330,9 @@ class StaticWarningCode extends ErrorCode {
|
| */
|
| static const StaticWarningCode MIXED_RETURN_TYPES = const StaticWarningCode(
|
| 'MIXED_RETURN_TYPES',
|
| - "Methods and functions cannot use return both with and without values");
|
| + "Methods and functions cannot use return both with and without values",
|
| + null,
|
| + false);
|
|
|
| /**
|
| * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an
|
| @@ -5531,7 +5544,7 @@ class StaticWarningCode extends ErrorCode {
|
| */
|
| static const StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR =
|
| const StaticWarningCode('NON_VOID_RETURN_FOR_OPERATOR',
|
| - "The return type of the operator []= must be 'void'");
|
| + "The return type of the operator []= must be 'void'", null, false);
|
|
|
| /**
|
| * 7.3 Setters: It is a static warning if a setter declares a return type
|
| @@ -5539,7 +5552,7 @@ class StaticWarningCode extends ErrorCode {
|
| */
|
| static const StaticWarningCode NON_VOID_RETURN_FOR_SETTER =
|
| const StaticWarningCode('NON_VOID_RETURN_FOR_SETTER',
|
| - "The return type of the setter must be 'void'");
|
| + "The return type of the setter must be 'void'", null, false);
|
|
|
| /**
|
| * 15.1 Static Types: A type <i>T</i> is malformed iff:
|
| @@ -5638,7 +5651,10 @@ class StaticWarningCode extends ErrorCode {
|
| * * The return type of <i>f</i> may not be assigned to void.
|
| */
|
| static const StaticWarningCode RETURN_WITHOUT_VALUE = const StaticWarningCode(
|
| - 'RETURN_WITHOUT_VALUE', "Missing return value after 'return'");
|
| + 'RETURN_WITHOUT_VALUE',
|
| + "Missing return value after 'return'",
|
| + null,
|
| + false);
|
|
|
| /**
|
| * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not
|
| @@ -5821,7 +5837,7 @@ class StaticWarningCode extends ErrorCode {
|
| */
|
| static const StaticWarningCode VOID_RETURN_FOR_GETTER =
|
| const StaticWarningCode('VOID_RETURN_FOR_GETTER',
|
| - "The return type of the getter must not be 'void'");
|
| + "The return type of the getter must not be 'void'", null, false);
|
|
|
| /**
|
| * 17.9 Switch: It is a static warning if all of the following conditions
|
| @@ -5840,7 +5856,8 @@ class StaticWarningCode extends ErrorCode {
|
| const StaticWarningCode(
|
| 'MISSING_ENUM_CONSTANT_IN_SWITCH',
|
| "Missing case clause for '{0}'",
|
| - "Add a case clause for the missing constant or add a default clause.");
|
| + "Add a case clause for the missing constant or add a default clause.",
|
| + false);
|
|
|
| /**
|
| * A flag indicating whether this warning is an error when running with strong
|
| @@ -5855,7 +5872,7 @@ class StaticWarningCode extends ErrorCode {
|
| * given [correction] template.
|
| */
|
| const StaticWarningCode(String name, String message,
|
| - [String correction, this.isStrongModeError = false])
|
| + [String correction, this.isStrongModeError = true])
|
| : super(name, message, correction);
|
|
|
| @override
|
| @@ -5988,12 +6005,11 @@ class StrongModeCode extends ErrorCode {
|
| 'IMPLICIT_DYNAMIC_FIELD',
|
| "Missing field type for '{0}'$_implicitDynamicTip");
|
|
|
| - static const StrongModeCode IMPLICIT_DYNAMIC_TYPE =
|
| - const StrongModeCode(
|
| - ErrorType.COMPILE_TIME_ERROR,
|
| - 'IMPLICIT_DYNAMIC_TYPE',
|
| - "Missing type arguments for generic type '{0}'"
|
| - "$_implicitDynamicTip");
|
| + static const StrongModeCode IMPLICIT_DYNAMIC_TYPE = const StrongModeCode(
|
| + ErrorType.COMPILE_TIME_ERROR,
|
| + 'IMPLICIT_DYNAMIC_TYPE',
|
| + "Missing type arguments for generic type '{0}'"
|
| + "$_implicitDynamicTip");
|
|
|
| static const StrongModeCode IMPLICIT_DYNAMIC_LIST_LITERAL =
|
| const StrongModeCode(
|
| @@ -6023,7 +6039,7 @@ class StrongModeCode extends ErrorCode {
|
| ErrorType.COMPILE_TIME_ERROR,
|
| 'IMPLICIT_DYNAMIC_INVOKE',
|
| "Missing type arguments for calling generic function type '{0}'"
|
| - "$_implicitDynamicTip");
|
| + "$_implicitDynamicTip");
|
|
|
| @override
|
| final ErrorType type;
|
|
|