-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Include more types in crystal tool hierarchy
#14711
Comments
Actually, I'm not sure how these would fit into this as modules/enums/etc don't inherit from a generic |
Yeah I suppose a separate tool might be better for this. |
Put together what I'm looking for here, let me know if this idea is PR worthy: https://github.com/nobodywasishere/crystal/tree/nobody/namespaces-tool Resisted the urge to add docs to the output haha. Honestly maybe the move is to just add a |
For this use case you don't need the full AST (compared to other tools which trace method calls, for example). It's just a very high-level view of the outline. So I don't think this is related to #14705. Actually, you can pull out the information about (documented) namespaces from |
This use-case no, but for general use-cases to be able to have tools not built with the compiler that can work with the AST is moreso what I meant. |
Good point with the docs |
Unfortunately the |
That could be easily changed with a flag though. Why did you close this? I think this it's worth pursuing a solution. |
Feature Request
crystal tool hierarchy
is really useful for getting an overview of the classes/structs available. I currently have a refactor branch of the vscode extension that uses it to quickly allow autocomplete of classes/structs.It would be useful if it included modules/enums/annotations in its output, something as simple as:
The text was updated successfully, but these errors were encountered: