Files
sdk/pkg/meta
Konstantin Shcheglov 26fc53e109 Add test for unusedResult when used for a named field value in a record literal.
Also small tweaks for the documentation and test names.

Found a hole while running in google3.
https://dart-review.googlesource.com/c/sdk/+/488624

Change-Id: I80f1bd38da028203fd9ffc281ac5f2a111b2becd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/493483
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-04-07 10:13:51 -07:00
..
2026-03-17 05:36:21 -07:00
2026-03-17 05:36:21 -07:00

pub package package publisher

This package defines annotations that can be used by the tools that are shipped with the Dart SDK.

Library Structure

The annotations in this package are defined in two libraries.

The library in meta.dart defines annotations that can be used by static analysis tools to provide a more complete analysis of the code that uses them. Within the SDK, these tools include the command-line analyzer (dart analyze) and the analysis server that is used to power many of the Dart-enabled development tools.

The library in dart2js.dart defines annotations that provide hints to dart2js to improve the quality of the JavaScript code that it produces. These annotations are currently experimental and might be removed in a future version of this package.

Support

Post issues and feature requests on the GitHub issue tracker.

Questions and discussions are welcome at the Dart Analyzer Discussion Group.

License

See the LICENSE file.