dart-sdk/pkg/meta
creativecreatorormaybenot 9108f927ab Document same-library access for protected members
I noticed that in the Flutter framework, `@protected` members are called from outside of instance methods. @Hixie responded:

> protected allows access from the same file

I think this should be documented.

Closes https://github.com/dart-lang/sdk/pull/45937
https://github.com/dart-lang/sdk/pull/45937

GitOrigin-RevId: c1a86d4039aeaa5a2126b505cad28e10fe361b0a
Change-Id: If0be693897abe10197516bdf854ec45fcb1be7fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198480
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-05-06 22:53:54 +00:00
..
lib Document same-library access for protected members 2021-05-06 22:53:54 +00:00
CHANGELOG.md Prepare to publish js and meta for null safety 2021-02-02 21:33:17 +00:00
LICENSE Update LICENSE 2021-04-07 10:28:38 +00:00
pubspec.yaml Prepare to publish js and meta for null safety 2021-02-02 21:33:17 +00:00
README.md Add a README file to the meta package 2017-12-17 21:53:17 +00:00

Annotations for Static Analysis

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 (dartanalyzer) 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.