Skip to content

Conversation

podtserkovskiy
Copy link
Contributor

@podtserkovskiy podtserkovskiy commented Oct 7, 2025

Supported enclosing_range for function definitions only.

Introducing additional traversal with ast.PreorderStack, because ast.Walk doesn't allow to access information about enclosing nodes.
The implementation code would be a bit simpler if ast.PreorderStack be used for the main traversal.

For #92

This PR can be merged after sourcegraph/scip#343 merged and new release tag published, so we can use it here for snapshots.

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

Successfully merging this pull request may close these issues.

1 participant