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

implement autogeneration of getter/setter #48

Merged
merged 8 commits into from Oct 13, 2019
Merged

Conversation

jyoo980
Copy link
Owner

@jyoo980 jyoo980 commented Oct 13, 2019

Not proud to have written this code, but should probably merge it in for MVP

Copy link
Collaborator

@scveloso scveloso left a comment

Choose a reason for hiding this comment

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

Theres repeated logic for createGetter and createSetter (I feel like there should be a intermediate Object that is a parent of both Class and Interface) but since it's close to film time, this is good!


private createGetter(name: string, type: string): FuncDecl {
let funcGetter: FuncDecl = new FuncDecl();
funcGetter.name = "get" + name.charAt(0).toUpperCase() + name.slice(1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

LOL i like it

Copy link
Owner Author

Choose a reason for hiding this comment

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

@uslava77 future work

@jyoo980 jyoo980 merged commit 71c377f into master Oct 13, 2019
@jyoo980 jyoo980 deleted the slava/support-generate branch October 13, 2019 02:43
@jyoo980 jyoo980 mentioned this pull request Oct 13, 2019
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.

None yet

3 participants