Skip to content
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

Add support for field and method properties #69

Merged
merged 17 commits into from
Sep 27, 2021
Merged

Conversation

davidcole1340
Copy link
Owner

No description provided.

Comment on lines 5 to 6
#[prop(flags = PropertyFlags::Private, rename = "Hello")]
a: i32,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to pick up syn::Visibility here? Would it ever make sense to have different levels of visibility between rust and php?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been removed but we can't change the property visibility at the moment, I'm pretty sure it's done through the property reflection which doesn't work with field properties.

@davidcole1340 davidcole1340 merged commit afdac8e into master Sep 27, 2021
@davidcole1340 davidcole1340 deleted the struct_properties branch September 27, 2021 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants