-
-
Couldn't load subscription status.
- Fork 91
Fix funk and funk name scope for Ruby Class methods
#782
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
Fix funk and funk name scope for Ruby Class methods
#782
Conversation
eb31331 to
552e01a
Compare
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.
Looks good! See inline comment, and also
- Worth adding a test for "arg" within an arg list for one of these functions
I'll also give @Will-Sommers a chance to have a look
| namedFunction: "method", | ||
| functionName: "method[name]", | ||
| namedFunction: ["method", "singleton_method"], | ||
| functionName: ["method[name]", "singleton_method[name]"], |
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.
Please also add to name (line 187 below), and add a test for that. Just one test for that one is fine
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.
Sorry I missed this suggestion in the issue @richardmcmillen!
552e01a to
ffa39d9
Compare
Tree sitter sees these as `singleton_methods` and this was missing from the `namedFunction` and `functionName` definitions.
ffa39d9 to
fd47787
Compare
I added a new test case which I think covers this if I understand correctly, and make the other change as well. |
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.
lgtm, thank you!
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.
Yep looks good to me too thanks!
Tree sitter sees these as
singleton_methodsand this was missing fromthe
namedFunctionandfunctionNamedefinitions.Checklist
Fixes #760