You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Comments before parameters interfere with argument name resolution聽#371
The problem with this one is that the comment before o is a child of the parameter list that's distinct from the parameter itself. So the comment is child 1 while the param is child 2. The lookup on on x goes through the fall func_7(obj), which sets up a scope where obj is the 1th argument, and the parameter list sets up a lookup on those arguments based on the position of the child. Except in this case, o is not the 1th child, so it resolves to the wrong place -- the non-existent 2th argument of the call.
I can't see any way to fix this within the current tree-sitter framework.
The github/stack-graphs repository is no longer being maintained. As per #502, I'm closing all issues and pull requests before archiving the repository.
Activity
BekaValentine commentedon Jan 29, 2024
The problem with this one is that the comment before
ois a child of the parameter list that's distinct from the parameter itself. So the comment is child 1 while the param is child 2. The lookup on onxgoes through the fallfunc_7(obj), which sets up a scope whereobjis the 1th argument, and the parameter list sets up a lookup on those arguments based on the position of the child. Except in this case,ois not the 1th child, so it resolves to the wrong place -- the non-existent 2th argument of the call.I can't see any way to fix this within the current tree-sitter framework.
CleanCut commentedon Sep 9, 2025
The github/stack-graphs repository is no longer being maintained. As per #502, I'm closing all issues and pull requests before archiving the repository.