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 getter/setter generation from private constructor parameters #65

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

camilne
Copy link

@camilne camilne commented Jan 10, 2019

This adds getter/setter generation from private constructor parameters. It works similarly to the existing generation. It only generates for parameters that are private and have a type that is not a nested generic. It is also able to handle optional and default parameters.
There are tests, and the matching method is in the regexutil file since it only makes sense to export a public-facing method (which is needed for testing).
The constructor signature must be on a single line.
Also, resolves #60 .

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.

Getter and setter using constructor too
1 participant