-
Notifications
You must be signed in to change notification settings - Fork 21
Support enclosing ranges for function definitions #172
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
Support enclosing ranges for function definitions #172
Conversation
94e8caa to
cbe47ef
Compare
|
@jupblb This PR is now ready for the review. However, I use pre-release version of |
|
I've created sourcegraph/scip#344, awaiting review |
cbe47ef to
ca009fe
Compare
|
I upgraded |
ca009fe to
a8c1677
Compare
jupblb
left a comment
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.
Overall LGTM! Thank you so much for this contribution!! 🎉 Please take a look at two minor comments, I'll try to review further changes ASAP. 😃
a8c1677 to
ad6ac1b
Compare
|
I've just applied your suggestions. Sorry for the late reaction, I was traveling 😀 |
jupblb
left a comment
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.
Thanks for all the work! 😃
|
Thanks for the review&merge ❤️ |
Supported
enclosing_rangefor function definitions only.Introducing additional traversal with
ast.PreorderStack, becauseast.Walkdoesn't allow to access information about enclosing nodes.The implementation code would be a bit simpler if
ast.PreorderStackbe used for the main traversal.For #92