mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
treesitter: add node:field() to get field children
This commit is contained in:
@@ -628,6 +628,9 @@ tsnode:iter_children() *tsnode:iter_children()*
|
||||
Returns the child node plus the eventual field name corresponding to
|
||||
this child node.
|
||||
|
||||
tsnode:field({name}) *tsnode:field()*
|
||||
Returns a table of the nodes corresponding to the {name} field.
|
||||
|
||||
tsnode:child_count() *tsnode:child_count()*
|
||||
Get the node's number of children.
|
||||
|
||||
|
Reference in New Issue
Block a user