-
Notifications
You must be signed in to change notification settings - Fork 178
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
Index global variables #2656
Index global variables #2656
Conversation
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.
Great!
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.
Just a minor comment, but this looks great!
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 for the contribution!
Motivation
Iteration of #2644
Before providing features related to global variables, we must index them via RBS declarations, as we do for core constants for example.
Implementation
Handle
RBS::AST::Declarations::Global
inRBSIndexer
, and createEntry::GlobalVariable
for each declaration.Automated Tests
I added a basic test, following
index_methods
example, but if specific assertions are required, I can add them.Manual Tests
After indexation process, a search in the index with
.prefix_search("$")
, it should return all entries from RBS declaration.