Skip to content

Generator print refactor#2210

Closed
forivall wants to merge 5 commits into
babel:masterfrom
forivall:generator-print-refactor
Closed

Generator print refactor#2210
forivall wants to merge 5 commits into
babel:masterfrom
forivall:generator-print-refactor

Conversation

@forivall
Copy link
Copy Markdown
Contributor

This moves all of the printing parts of the code generator into the from the NodePrinter class to the CodeGenerator. I found the code around this rather confusing, since the control flow of printing constantly flip flops between the CodeGenerator and the NodePrinter, and there's a lot of printing in the CodeGenerator anyways, so there's no real clear separation of concerns in the first place. It seems like there was some refactoring going on, that was stopped halfway, and it's now in this confusing state, where NodePrinter doesn't really do much other than add an unneeded layer of indirection.

I'm fine if this gets rejected, in favour of moving more code printing into the NodePrinter.

sebmck added a commit that referenced this pull request Oct 5, 2015
@sebmck sebmck closed this Oct 5, 2015
@lock lock Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 8, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants