[analyzer] Mark new package:meta diagnostics as published

Change-Id: I2c4657a189f0590ec9405ea10386932f1c101ee3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/361320
Reviewed-by: Marya Belanger <mbelanger@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Marya Belanger <mbelanger@google.com>
This commit is contained in:
Parker Lougheed 2024-04-04 22:47:25 +00:00 committed by Commit Queue
parent 6f46971624
commit f2170a9ac6
4 changed files with 12 additions and 6 deletions

View file

@ -6740,6 +6740,7 @@ class WarningCode extends AnalyzerErrorCode {
'INVALID_USE_OF_DO_NOT_SUBMIT_MEMBER',
"Uses of '{0}' should not be submitted to source control.",
correctionMessage: "Try removing the reference to '{0}'.",
hasPublishedDocs: true,
);
/// Parameters:
@ -6940,6 +6941,7 @@ class WarningCode extends AnalyzerErrorCode {
'NON_CONST_ARGUMENT_FOR_CONST_PARAMETER',
"Argument '{0}' must be a constant.",
correctionMessage: "Try replacing the argument with a constant.",
hasPublishedDocs: true,
);
/// Generates a warning for non-const instance creation using a constructor

View file

@ -24089,7 +24089,7 @@ WarningCode:
comment: |-
Parameters:
0: the name of the member
hasPublishedDocs: false
hasPublishedDocs: true
documentation: |-
#### Description
@ -24895,13 +24895,13 @@ WarningCode:
comment: |-
Parameters:
0: the name of the argument
hasPublishedDocs: false
hasPublishedDocs: true
documentation: |-
#### Description
The analyzer produces this diagnostic when a parameter is
annotated with the `@mustBeConst` annotation and the
corresponding argument is not a constant expression.
annotated with the [`mustBeConst`][meta-mustBeConst] annotation and
the corresponding argument is not a constant expression.
#### Example

View file

@ -33,10 +33,12 @@ that might work in unexpected ways.
[IEEE 754]: https://en.wikipedia.org/wiki/IEEE_754
[irrefutable pattern]: https://dart.dev/resources/glossary#irrefutable-pattern
[meta-doNotStore]: https://pub.dev/documentation/meta/latest/meta/doNotStore-constant.html
[meta-doNotSubmit]: https://pub.dev/documentation/meta/latest/meta/doNotSubmit-constant.html
[meta-factory]: https://pub.dev/documentation/meta/latest/meta/factory-constant.html
[meta-immutable]: https://pub.dev/documentation/meta/latest/meta/immutable-constant.html
[meta-internal]: https://pub.dev/documentation/meta/latest/meta/internal-constant.html
[meta-literal]: https://pub.dev/documentation/meta/latest/meta/literal-constant.html
[meta-mustBeConst]: https://pub.dev/documentation/meta/latest/meta/mustBeConst-constant.html
[meta-mustCallSuper]: https://pub.dev/documentation/meta/latest/meta/mustCallSuper-constant.html
[meta-optionalTypeArgs]: https://pub.dev/documentation/meta/latest/meta/optionalTypeArgs-constant.html
[meta-sealed]: https://pub.dev/documentation/meta/latest/meta/sealed-constant.html
@ -15012,8 +15014,8 @@ _Argument '{0}' must be a constant._
#### Description
The analyzer produces this diagnostic when a parameter is
annotated with the `@mustBeConst` annotation and the
corresponding argument is not a constant expression.
annotated with the [`mustBeConst`][meta-mustBeConst] annotation and
the corresponding argument is not a constant expression.
#### Example

View file

@ -199,10 +199,12 @@ that might work in unexpected ways.
[IEEE 754]: https://en.wikipedia.org/wiki/IEEE_754
[irrefutable pattern]: https://dart.dev/resources/glossary#irrefutable-pattern
[meta-doNotStore]: https://pub.dev/documentation/meta/latest/meta/doNotStore-constant.html
[meta-doNotSubmit]: https://pub.dev/documentation/meta/latest/meta/doNotSubmit-constant.html
[meta-factory]: https://pub.dev/documentation/meta/latest/meta/factory-constant.html
[meta-immutable]: https://pub.dev/documentation/meta/latest/meta/immutable-constant.html
[meta-internal]: https://pub.dev/documentation/meta/latest/meta/internal-constant.html
[meta-literal]: https://pub.dev/documentation/meta/latest/meta/literal-constant.html
[meta-mustBeConst]: https://pub.dev/documentation/meta/latest/meta/mustBeConst-constant.html
[meta-mustCallSuper]: https://pub.dev/documentation/meta/latest/meta/mustCallSuper-constant.html
[meta-optionalTypeArgs]: https://pub.dev/documentation/meta/latest/meta/optionalTypeArgs-constant.html
[meta-sealed]: https://pub.dev/documentation/meta/latest/meta/sealed-constant.html