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 938aa23da151753d99ad486fbf3ef2d4ae257b82..80c7e0535c09a53e6eec72b42c76f370f61ac4eb 100644 |
--- a/pkg/analyzer/lib/src/generated/error.dart |
+++ b/pkg/analyzer/lib/src/generated/error.dart |
@@ -12,6 +12,8 @@ import 'package:analyzer/dart/element/element.dart'; |
import 'package:analyzer/dart/element/type.dart'; |
import 'package:analyzer/source/error_processor.dart'; |
import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; |
+import 'package:analyzer/src/generated/generated/shared_messages.dart' |
+ as shared_messages; |
import 'package:analyzer/src/generated/java_core.dart'; |
import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; |
import 'package:analyzer/src/generated/source.dart'; |
@@ -2228,16 +2230,14 @@ class CompileTimeErrorCode extends ErrorCode { |
* <i>return e;</i> appears in a generative constructor. |
*/ |
static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = |
- const CompileTimeErrorCode('RETURN_IN_GENERATIVE_CONSTRUCTOR', |
- "Constructors cannot return a value"); |
+ shared_messages.RETURN_IN_GENERATIVE_CONSTRUCTOR; |
/** |
* 13.12 Return: It is a compile-time error if a return statement of the form |
* <i>return e;</i> appears in a generator function. |
*/ |
static const CompileTimeErrorCode RETURN_IN_GENERATOR = |
- const CompileTimeErrorCode('RETURN_IN_GENERATOR', |
- "Cannot return a value from a generator function (one marked with either 'async*' or 'sync*')"); |
+ shared_messages.RETURN_IN_GENERATOR; |
/** |
* 14.1 Imports: It is a compile-time error if a prefix used in a deferred |