Skip to content

Switch transformer - #347

Merged
Perryvw merged 3 commits into
ts-to-lua-astfrom
feature/transformer-switch
Jan 19, 2019
Merged

Switch transformer#347
Perryvw merged 3 commits into
ts-to-lua-astfrom
feature/transformer-switch

Conversation

@Perryvw

@Perryvw Perryvw commented Jan 19, 2019

Copy link
Copy Markdown
Member

No description provided.

@Perryvw
Perryvw requested review from lolleko and tomblind January 19, 2019 14:46
Comment thread src/LuaTransformer.ts Outdated
public transformSwitchStatement(arg0: ts.SwitchStatement): StatementVisitResult {
throw new Error("Method not implemented.");
public transformSwitchStatement(statement: ts.SwitchStatement): StatementVisitResult {
if (this.options.luaTarget <= LuaTarget.Lua51) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should not use math comparison for string values 😃

@Perryvw
Perryvw merged commit faa4896 into ts-to-lua-ast Jan 19, 2019
@Perryvw
Perryvw deleted the feature/transformer-switch branch January 19, 2019 15:32
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