-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[core] Fix ast-dump CLI when reading from stdin #3896
Conversation
Bug was introduced in e64d48
It builds a tree now, which allows building valid trees more easily. The syntax is lispish: balanced parentheses create new nodes.
Generated by 🚫 Danger |
return rootNode; | ||
} | ||
|
||
public static void setFileName(String fileName, Node rootNode) { |
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.
I'll mark this as @InternalApi
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.
ok, whole AbstractParser is deprecated, but will add InternalApi anyway
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.
Thanks!
[core] Fix ast-dump CLI when reading from stdin #3896
Describe the PR
Bug was introduced in e64d485
This is the stacktrace
The rest of the PR adds tests for the tree export cli, and cleans up some related tests
41b03fe is standalone enough to be its own PR but I think it's a nice improvement and it is directly useful here.
Related issues
Ready?
./mvnw clean verify
passes (checked automatically by github actions)