Skip to content

Commit 3c88ea8

Browse files
bwilkersoncommit-bot@chromium.org
authored andcommitted
Unify two error codes for documentation purposes
Change-Id: I793d761f705ae1818ae8cc298b1f6077e1b9b9ef Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161344 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent f5fbe01 commit 3c88ea8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pkg/analyzer/lib/src/error/codes.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4399,13 +4399,10 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
43994399
"changing the import to not be deferred.");
44004400

44014401
/**
4402-
* 15 Metadata: Metadata consists of a series of annotations, each of which
4403-
* begin with the character @, followed by a constant expression that must be
4404-
* either a reference to a compile-time constant variable, or a call to a
4405-
* constant constructor.
4402+
* No parameters.
44064403
*/
44074404
static const CompileTimeErrorCode INVALID_ANNOTATION_GETTER =
4408-
CompileTimeErrorCode(
4405+
CompileTimeErrorCodeWithUniqueName('INVALID_ANNOTATION',
44094406
'INVALID_ANNOTATION_GETTER', "Getters can't be used as annotations.",
44104407
correction: "Try using a top-level variable or a field.");
44114408

0 commit comments

Comments
 (0)