-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Hint when @protected members are used outside instances of subclasses. #25841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
@pq is the analyzer package going to get a push as well with this? I didn't see the protected checks in 0.27.3-alpha.0 |
Eventually, yes. We're in the process of implementing several annotations and it might make sense to wait for more of them to be implemented rather than flooding the world with lots of extra versions. Do you need it for something? |
@bwilkerson I can certainly wait. Been waiting a long time for |
I guess the question really is, do you need a version of the analyzer package published to pub, or are you just waiting for a new build of the SDK with this support in it? (The two are not necessarily kept in sync.) |
I have a library that will load a library through the analyzer then gather the metadata and then let you run queries against the data. I have support for deprecated and override and I was going to add support for instantiating |
It isn't clear that you need a new version of the analyzer package. Analyzer doesn't need to understand an annotation to capture it (though it does have some utility methods for the annotations it knows about). And the annotation itself is defined in the 'meta' package (https://pub.dartlang.org/packages/meta), so you can start adding it to code today. You probably have enough to do what you want, although the utility methods would be helpful. |
It was the utility methods ala |
See
@protected
annotation definition here: https://codereview.chromium.org/1719353002/.The text was updated successfully, but these errors were encountered: