-
Notifications
You must be signed in to change notification settings - Fork 213
Can @patch be public? #842
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
I've using mixin and quite a lot tweak in my cli to work around this. |
The syntax Currently it's only used by the platform libraries because that's the only external functions that the platform compilers know how to provide an implementation for. The If you look at the So: Definite no to exposing |
Partial class seems to be a much better solution. Hope partial class could be available soon. Thanks for reply. |
I have a cli command to convert gson java file to dart file. i.e.
to
Some modifications may be applied to the generated dart, i.e. add a method. Meanwhile dart file should be updated by re-generate using cli, whenever java file gets updated.
Adding a method each re-generation could be avoided by using external and @patch, but @patch is private to dart:_internal.
On external and @patch only, a keyword can only be used with a private meta looks quite strange to me.
The text was updated successfully, but these errors were encountered: