analyzer: add CHANGELOG entry regarding doNotSubmit and mustBeConst

Change-Id: I368481b88135cd0f9440cfbe10d1b990a7610d13
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/364205
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
Sam Rawlins 2024-04-23 22:53:29 +00:00 committed by Commit Queue
parent e90a6a7e61
commit 34e29fbefb
2 changed files with 13 additions and 3 deletions

View file

@ -70,9 +70,19 @@ advantage of these improvements, set your package's
#### Analyzer
- Improved code completion. Fixed over 50% of completion correctness bugs,
tagged `analyzer-completion-correctness` in the [issue tracker][analyzer-completion-correction-issues].
tagged `analyzer-completion-correctness` in the [issue
tracker][analyzer-completion-correction-issues].
- Support for new annotations introduced in version 1.14.0 of the [meta]
package.
- Support for the [`@doNotSubmit`] annotation, noting that any usage of an
annotated member should not be submitted to source control.
- Support for the [`@mustBeConst`] annotation, which indicates that an
annotated parameter only accepts constant arguments.
[analyzer-completion-correction-issues]: https://github.com/dart-lang/sdk/labels/analyzer-completion-correctness
[meta]: https://pub.dev/packages/meta
[`@doNotSubmit`]: https://pub.dev/documentation/meta/latest/meta/doNotSubmit-constant.html
[`@mustBeConst`]: https://pub.dev/documentation/meta/latest/meta/mustBeConst-constant.html
#### Compilers

View file

@ -8,8 +8,8 @@
any enum value declaration.
- Introduce `TargetKind.typeParameter`, to indicate that an annotation is valid
on any type parameter declaration.
- Introduce `@doNotSubmit` to annotate members that should not be submitted to
source control, typically because they are intended to be used ephemerally
- Introduce `@doNotSubmit` to annotate members that should not be accessed in
checked-in code, typically because they are intended to be used ephemerally
during development.
One example is `package:test`'s `solo: ...` parameter, which skips all other