Skip to content

Separate transformer run method - #655

Merged
Perryvw merged 2 commits into
TypeScriptToLua:masterfrom
ark120202:separate-transformer-run-method
Jul 8, 2019
Merged

Separate transformer run method#655
Perryvw merged 2 commits into
TypeScriptToLua:masterfrom
ark120202:separate-transformer-run-method

Conversation

@ark120202

Copy link
Copy Markdown
Contributor

See #565 (comment).

All transformer state initialization is extracted to run method. transformSourceFile is now just a simple overridable visitor. Since setupState is now guaranteed to be called (unless one calls visitors directly), I have also removed initializers duplication.

Comment thread src/LuaPrinter.ts
Comment thread src/LuaTransformer.ts Outdated
@Perryvw
Perryvw merged commit d4f4f52 into TypeScriptToLua:master Jul 8, 2019
@ark120202
ark120202 deleted the separate-transformer-run-method branch November 26, 2019 08:18
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.

2 participants