mirror of
https://github.com/dart-lang/sdk
synced 2024-10-05 00:25:11 +00:00
[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:
parent
6f46971624
commit
f2170a9ac6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue