Skip to content

properly handling bitwise operators #331

Merged
tomblind merged 4 commits intots-to-lua-astfrom
ts-to-lua-ast-bitop
Jan 11, 2019
Merged

properly handling bitwise operators #331
tomblind merged 4 commits intots-to-lua-astfrom
ts-to-lua-ast-bitop

Conversation

@tomblind
Copy link
Copy Markdown
Collaborator

...and passing original nodes in some places it wasn't being passed

src/LuaAST.ts Outdated
BitwiseOrOperator,
BitwiseExclusiveOrOperator,
BitwiseRightShiftOperator,
BitwiseArithmaticRightShift,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you mean: Arithmetic?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Whoops 😄

- Changed Arithmatic to Arithmetic
- Throwing errors in printer in case something slips through from transformer
- Throwing errors for unknown prefix/postifx unary ops
- Move target-specific logic from subclasses to base transformer for bitops and unpack
- Removed some unused helpers
@tomblind tomblind merged commit 63c2e93 into ts-to-lua-ast Jan 11, 2019
@tomblind tomblind deleted the ts-to-lua-ast-bitop branch January 11, 2019 19:59
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.

3 participants