fix(treesitter): TSNode:field() returns all children with the given field

This commit is contained in:
Riley Bruins
2025-02-15 13:33:38 -08:00
committed by Lewis Russell
parent 3e39250a79
commit 55b165ac15
4 changed files with 31 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ function TSNode:prev_named_sibling() end
--- @return fun(): TSNode, string
function TSNode:iter_children() end
--- Returns a table of the nodes corresponding to the {name} field.
--- Returns a list of all the node's children that have the given field name.
--- @param name string
--- @return TSNode[]
function TSNode:field(name) end