| Index: pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
|
| index 1424c62a2ecffc837ae04d1b6cda368002629bce..6878eeb2cc4354e08fa08ee2ce2525d2193a3459 100644
|
| --- a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
|
| +++ b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
|
| @@ -744,6 +744,13 @@ class ParserErrorCode extends ErrorCode {
|
| "loaded through native extensions.",
|
| "Try removing the word 'native'.");
|
|
|
| + static const ParserErrorCode NATIVE_CLAUSE_SHOULD_BE_ANNOTATION =
|
| + const ParserErrorCode(
|
| + 'NATIVE_CLAUSE_SHOULD_BE_ANNOTATION',
|
| + "Native clause in this form is deprecated.",
|
| + "Try removing this native clause and adding @native()"
|
| + " or @native('native-name') before the declaration.");
|
| +
|
| static const ParserErrorCode NON_CONSTRUCTOR_FACTORY = const ParserErrorCode(
|
| 'NON_CONSTRUCTOR_FACTORY',
|
| "Only a constructor can be declared to be a factory.",
|
|
|