Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanups to Emitter post transforms #4970

Merged
merged 2 commits into from
Apr 1, 2024

Conversation

gzm0
Copy link
Contributor

@gzm0 gzm0 commented Mar 24, 2024

The changes in #4945 made me realize that the post transform concept is more general than we actually need: we do not need general purpose post transformation, just pre-printing.

This PR aligns the code with this notion.

@gzm0
Copy link
Contributor Author

gzm0 commented Mar 24, 2024

Based on #4965 to avoid conflicts, but otherwise ready to review.

@gzm0 gzm0 requested a review from sjrd March 24, 2024 13:02
They are not useful and only make us consume more memory.

I initially introduced them because it looked like downstream could
avoid running post transforms at all. This seems to not be the case,
so there is no point in attempting to provide it.
Further, we move the implementations fully into Emitter: At this point
its clear, that there won't really be any others (unless we
fundamentally change tree printing).
@gzm0 gzm0 force-pushed the no-nested-post-transforms branch from 8663a6d to 09336f3 Compare March 31, 2024 13:45
@gzm0 gzm0 marked this pull request as ready for review March 31, 2024 13:45
@gzm0
Copy link
Contributor Author

gzm0 commented Mar 31, 2024

Rebased on main.

@gzm0 gzm0 merged commit 96fdeb5 into scala-js:main Apr 1, 2024
3 checks passed
@gzm0 gzm0 deleted the no-nested-post-transforms branch April 1, 2024 07:56
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.

None yet

2 participants