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 printer branch for TSFirstTypeNode #1332

Merged
merged 2 commits into from
Apr 19, 2017

Conversation

despairblue
Copy link
Collaborator

This adds the printer implementation for the TSFirstTypeNode. I'm not sure this is correct, since I call path.getParentNode() in the TypeAnnotation branch but instead of getting the direct parent (which would be TSFirstTypeNode) I actually get the parent's parent, thus I have to walk down that path one node again.

When looking for the parent node it probably just skips unknown nodes. I'll take a look atpath.getParentNode's implementation later this week.

@despairblue despairblue changed the title add TSFirstTypeNode add printer branch for TSFirstTypeNode Apr 18, 2017
@vjeux
Copy link
Contributor

vjeux commented Apr 18, 2017

Could you also add a snapshot test along with it? This way it's easier to review and is a good regression test. Thanks!

@despairblue
Copy link
Collaborator Author

@vjeux done

@vjeux vjeux merged commit cb79d82 into prettier:master Apr 19, 2017
@vjeux
Copy link
Contributor

vjeux commented Apr 19, 2017

Awesome, thanks a lot!

@despairblue despairblue mentioned this pull request Apr 21, 2017
21 tasks
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 20, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants