mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
fix(treesitter): TSNode:field() returns all children with the given field
This commit is contained in:
committed by
Lewis Russell
parent
3e39250a79
commit
55b165ac15
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user