Skip to content

Feature/move parenthesis handling to printer#801

Merged
Perryvw merged 6 commits intomasterfrom
feature/move-parenthesis-handling-to-printer
Jan 19, 2020
Merged

Feature/move parenthesis handling to printer#801
Perryvw merged 6 commits intomasterfrom
feature/move-parenthesis-handling-to-printer

Conversation

@Perryvw
Copy link
Copy Markdown
Member

@Perryvw Perryvw commented Jan 17, 2020

Moved parenthesis handling from transformer to printer.

Fixes #798

@ark120202
Copy link
Copy Markdown
Contributor

Can lua.ParenthesizedExpression node and some printing logic (i.e. canStripParenthesis) be also removed now?

@Perryvw
Copy link
Copy Markdown
Member Author

Perryvw commented Jan 18, 2020

Can lua.ParenthesizedExpression node and some printing logic (i.e. canStripParenthesis) be also removed now?

Maybe yes, I'll play around with it. Right now we no longer introduce new parenthesized expressions, but we do still preserve ts parenthesized expressions. I don't know if there is still an argument for doing this, since we will add the parentheses if necessary anyway.

@Perryvw Perryvw merged commit e2ef63d into master Jan 19, 2020
@Perryvw Perryvw deleted the feature/move-parenthesis-handling-to-printer branch January 19, 2020 17:00
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.

Assignment operators missing parenthesis

2 participants