| 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 728435f22fb9414f9d53e8fb0c920bf8fff5b4e6..b6c7e25b0e156619e61d23dd578bee80daa54a86 100644
|
| --- a/pkg/analyzer/lib/src/generated/error.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error.dart
|
| @@ -3316,6 +3316,7 @@ class ErrorReporter {
|
| }
|
| return type.displayName;
|
| }
|
| +
|
| if (_hasEqualTypeNames(arguments)) {
|
| int count = arguments.length;
|
| for (int i = 0; i < count; i++) {
|
| @@ -5329,6 +5330,26 @@ class StaticWarningCode extends ErrorCode {
|
| false);
|
|
|
| /**
|
| + * 17.9 Switch: It is a static warning if all of the following conditions
|
| + * hold:
|
| + * * The switch statement does not have a 'default' clause.
|
| + * * The static type of <i>e</i> is an enumerated typed with elements
|
| + * <i>id<sub>1</sub></i>, …, <i>id<sub>n</sub></i>.
|
| + * * The sets {<i>e<sub>1</sub></i>, …, <i>e<sub>k</sub></i>} and
|
| + * {<i>id<sub>1</sub></i>, …, <i>id<sub>n</sub></i>} are not the
|
| + * same.
|
| + *
|
| + * Parameters:
|
| + * 0: the name of the constant that is missing
|
| + */
|
| + static const StaticWarningCode MISSING_ENUM_CONSTANT_IN_SWITCH =
|
| + 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.",
|
| + false);
|
| +
|
| + /**
|
| * 13.12 Return: It is a static warning if a function contains both one or
|
| * more return statements of the form <i>return;</i> and one or more return
|
| * statements of the form <i>return e;</i>.
|
| @@ -5852,26 +5873,6 @@ class StaticWarningCode extends ErrorCode {
|
| "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
|
| - * hold:
|
| - * * The switch statement does not have a 'default' clause.
|
| - * * The static type of <i>e</i> is an enumerated typed with elements
|
| - * <i>id<sub>1</sub></i>, …, <i>id<sub>n</sub></i>.
|
| - * * The sets {<i>e<sub>1</sub></i>, …, <i>e<sub>k</sub></i>} and
|
| - * {<i>id<sub>1</sub></i>, …, <i>id<sub>n</sub></i>} are not the
|
| - * same.
|
| - *
|
| - * Parameters:
|
| - * 0: the name of the constant that is missing
|
| - */
|
| - static const StaticWarningCode MISSING_ENUM_CONSTANT_IN_SWITCH =
|
| - 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.",
|
| - false);
|
| -
|
| - /**
|
| * A flag indicating whether this warning is an error when running with strong
|
| * mode enabled.
|
| */
|
|
|