-
Notifications
You must be signed in to change notification settings - Fork 52
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
[ffigen] fix syntax for leaf ffiNative functions #861
Conversation
Fixes a missing comma in front of isLeaf: true, which is only needed for ffiNatives.
It looks like running |
Thanks @miDeb!
It might be that this script doesn't cover all tests. Also, that script doesn't seem to be exercised on the CI. So maybe it only used to work for the devs who used that script. I have filed #862 to track this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@miDeb Could you try merging the last commit from master to see if the health check passes now? |
PR HealthPackage publish validation ✔️Details
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. License Headers ✔️Details
All source files should start with a license header. Unrelated files missing license headers
Changelog Entry ✔️Details
Changes to files need to be accounted for in their respective changelogs. Breaking changes ✔️Details
|
Other test expectations don't have a license header either, should I just ignore this? |
Regarding the changelog, is this worth mentioning? |
This health check is new, and strict apparently. If you can add it to the expect file, I think it's fine to add it. Yeah it's fine to add it to the change log. |
I added it to all expected files in the generator test for consistency. To keep the test passing I had to update it as well. I also added it to the changelog. |
auto label is removed for dart-lang/native/861, due to This PR has not met approval requirements for merging. The PR author is not a member of dart-team and needs 1 more review(s) in order to merge this PR.
|
Thanks @miDeb ! 🙏 |
I noticed that for leaf functions the
Native
annotation was being generated like this:@ffi.Native<ffi.Int Function(tjhandle , ffi.Int , ffi.Int )>(symbol: 'tj3Set'isLeaf:true)
, with a missing comma between the symbol name andisLeaf: true
.This PR adds the comma back. I also modified a test to also check the generation with ffiNatives enabled.