-
Notifications
You must be signed in to change notification settings - Fork 1.1k
A more memory efficient AstPrinter #4028
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
Conversation
Test Results 318 files - 632 318 suites - 632 2m 46s ⏱️ - 5m 39s Results for commit 83ec4d5. ± Comparison against base commit aef8032. This pull request removes 462 and adds 128 tests. Note that renamed tests count towards both.
This pull request skips 1 test.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
As an aside:
It could be great to add an API that allows users to pass their own string builder for flexibility. That allows things like reserving the capacity needed, or reusing string builders, which we both currently do in a custom printer.
public static StringBuilder printAst(Node node, StringBuilder out) {
printAstTo(node, out);
return out
}
We have
and
Maybe not super fluent but possible |
No description provided.