Unify three error codes for documentation purposes
Change-Id: I71fd9a614f7eb933d20dc54060ab48111b6061fb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226140 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
committed by
Commit Bot
parent
dc833c2119
commit
3e63086553
@@ -4521,27 +4521,30 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
|
||||
|
||||
static const CompileTimeErrorCode EXTERNAL_FIELD_CONSTRUCTOR_INITIALIZER =
|
||||
CompileTimeErrorCode(
|
||||
'EXTERNAL_FIELD_CONSTRUCTOR_INITIALIZER',
|
||||
"External fields cannot have initializers.",
|
||||
'EXTERNAL_WITH_INITIALIZER',
|
||||
"External fields can't have initializers.",
|
||||
correctionMessage:
|
||||
"Try removing the field initializer or the 'external' keyword from the "
|
||||
"field declaration.",
|
||||
uniqueName: 'EXTERNAL_FIELD_CONSTRUCTOR_INITIALIZER',
|
||||
);
|
||||
|
||||
static const CompileTimeErrorCode EXTERNAL_FIELD_INITIALIZER =
|
||||
CompileTimeErrorCode(
|
||||
'EXTERNAL_FIELD_INITIALIZER',
|
||||
"External fields cannot have initializers.",
|
||||
'EXTERNAL_WITH_INITIALIZER',
|
||||
"External fields can't have initializers.",
|
||||
correctionMessage:
|
||||
"Try removing the initializer or the 'external' keyword.",
|
||||
uniqueName: 'EXTERNAL_FIELD_INITIALIZER',
|
||||
);
|
||||
|
||||
static const CompileTimeErrorCode EXTERNAL_VARIABLE_INITIALIZER =
|
||||
CompileTimeErrorCode(
|
||||
'EXTERNAL_VARIABLE_INITIALIZER',
|
||||
"External variables cannot have initializers.",
|
||||
'EXTERNAL_WITH_INITIALIZER',
|
||||
"External variables can't have initializers.",
|
||||
correctionMessage:
|
||||
"Try removing the initializer or the 'external' keyword.",
|
||||
uniqueName: 'EXTERNAL_VARIABLE_INITIALIZER',
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -3971,13 +3971,16 @@ CompileTimeErrorCode:
|
||||
If there are multiple cascaded accesses, you'll need to duplicate the
|
||||
extension override for each one.
|
||||
EXTERNAL_FIELD_CONSTRUCTOR_INITIALIZER:
|
||||
problemMessage: External fields cannot have initializers.
|
||||
sharedName: EXTERNAL_WITH_INITIALIZER
|
||||
problemMessage: External fields can't have initializers.
|
||||
correctionMessage: "Try removing the field initializer or the 'external' keyword from the field declaration."
|
||||
EXTERNAL_FIELD_INITIALIZER:
|
||||
problemMessage: External fields cannot have initializers.
|
||||
sharedName: EXTERNAL_WITH_INITIALIZER
|
||||
problemMessage: External fields can't have initializers.
|
||||
correctionMessage: "Try removing the initializer or the 'external' keyword."
|
||||
EXTERNAL_VARIABLE_INITIALIZER:
|
||||
problemMessage: External variables cannot have initializers.
|
||||
sharedName: EXTERNAL_WITH_INITIALIZER
|
||||
problemMessage: External variables can't have initializers.
|
||||
correctionMessage: "Try removing the initializer or the 'external' keyword."
|
||||
EXTRA_POSITIONAL_ARGUMENTS:
|
||||
problemMessage: "Too many positional arguments: {0} expected, but {1} found."
|
||||
|
||||
Reference in New Issue
Block a user