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
Enhancements to --print-ast
#5417
Comments
TIL we do have a |
I agree with Nico here. I think the flag should be removed for housekeeping reasons, since the PsiViewer plugin provides the same features. As a side note, the |
If we decide to remove this flag, I provided a PR #5418. |
I also use the PSI Viewer plugin, and have never used the AST printer. |
Sounds like there's consensus on removing the flag. 👍 PsiViewer is nice. I don't suppose there is any way to get the resolved type information though? |
+1 for removing it.
IIRC PsiViewer displays some amount of resolved types as well. |
I love the
--print-ast
tool while working on new rules. I added some additional output to make it even easier to use.Is this something we would want to include? If so I'll make a PR.
Expected Behavior
.text
property so it's clear what element is being dumped..name
(or equivalent) property instead (see class and function names not shown in example).Current Behavior
Only the element types are dumped.
Context
Developing tools to make developing tools easier.
Example
This is showing
.text
only. Class and function names are not shown so I'll modify to include.name
(or equivalent) when present before submitting a PR.The text was updated successfully, but these errors were encountered: