Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Conversation

bmulvihill
Copy link
Contributor

Based on #38

This implements initial Symbol support for Scry. I originally started to use CrystalCtags but feel that was kind of written to do something similar but not exactly the same. Some changes would needed to be made to Ctags in order for it to work for Scry's purposes I believe, and it might just be easier to have our own implementation.

This PR adds a Scry specific SymbolVisitor which traverses the AST and builds a list of Symbols to be sent as the response. I have only added support for Class/Module/Enum/Struct/Methods in this initial PR. Let me know what you think and if you think this is a good way to proceed!

Copy link
Contributor

@kofno kofno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ok to me as a first pass

Copy link
Contributor

@keplersj keplersj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

Copy link
Member

@faustinoaq faustinoaq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good PR!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants