Skip to content

Walker2#3

Draft
TiLied wants to merge 13 commits intomasterfrom
walker2
Draft

Walker2#3
TiLied wants to merge 13 commits intomasterfrom
walker2

Conversation

@TiLied
Copy link
Copy Markdown
Owner

@TiLied TiLied commented Apr 5, 2026

Rewrote the walker into 2 3 rewriters and a walker. One rewriter is with a semantic model and the other is without. As a result of 2 rewrites there is almost no state (nodes) tracking, better formatting due to creating nodes rather than translating into a JS string, easier to add features, and also the "NormalizeWhitespace" option will run after the rewriters, generating consistent results.

Also, partially fixes #1, should not be difficult to add acornima or something (I am not satisfied with my own JS parser).

Should have been done it in the first place)

All tests passed, but it is likely I forgot some things.

TiLied added 13 commits March 19, 2026 22:02
Total tests: 424/36 failed.
Total test:424/26 failed.
424/16
424/6
424/2
424/7 real one!
424/5
429/5
431/0
435/0
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.

Directly implementing Roslyn AST to JavaScript is quite complex. Converting Roslyn AST → ESTree AST → JavaScript might be a better approach.

1 participant