Node
A single node within a syntax tree.
A single node within a syntax tree.
A single node within a syntax tree.
A single node within a syntax tree.
Properties
The number of this node's children.
The number of this node's children.
The number of this node's children.
The number of this node's children.
The number of this node's descendants, including one for the node itself.
The number of this node's descendants, including one for the node itself.
The number of this node's descendants, including one for the node itself.
The number of this node's descendants, including one for the node itself.
The numerical ID of the node's type, as it appears in the grammar ignoring aliases.
The numerical ID of the node's type, as it appears in the grammar ignoring aliases.
The numerical ID of the node's type, as it appears in the grammar ignoring aliases.
The numerical ID of the node's type, as it appears in the grammar ignoring aliases.
The type of the node, as it appears in the grammar ignoring aliases.
The type of the node, as it appears in the grammar ignoring aliases.
The type of the node, as it appears in the grammar ignoring aliases.
The type of the node, as it appears in the grammar ignoring aliases.
Check if the node has been edited.
Check if the node has been edited.
Check if the node has been edited.
Check if the node has been edited.
Check if the node is a syntax error, or contains any syntax errors.
Check if the node is a syntax error, or contains any syntax errors.
The number of this node's named children.
The number of this node's named children.
The number of this node's named children.
The number of this node's named children.
This node's named children.
This node's named children.
This node's named children.
This node's named children.
The node's next named sibling, if any.
The node's next named sibling, if any.
The node's next named sibling, if any.
The node's next named sibling, if any.
The parse state after this node.
The parse state after this node.
The parse state after this node.
The parse state after this node.
The node's next sibling, if any.
The node's next sibling, if any.
The node's next sibling, if any.
The node's next sibling, if any.
The parse state of this node.
The parse state of this node.
The parse state of this node.
The parse state of this node.
The node's previous named sibling, if any.
The node's previous named sibling, if any.
The node's previous named sibling, if any.
The node's previous named sibling, if any.
The node's previous sibling, if any.
The node's previous sibling, if any.
The node's previous sibling, if any.
The node's previous sibling, if any.
The start point of the node.
The start point of the node.
The start point of the node.
The start point of the node.
Functions
The node's child at the given index, if any.
The node's child at the given index, if any.
Get the node's child with the given field ID, if any.
Get the node's child with the given field ID, if any.
Get the node's child with the given field ID, if any.
Get the node's child with the given field ID, if any.
Get the node's child with the given field name, if any.
Get the node's child with the given field name, if any.
Get the node's child with the given field name, if any.
Get the node's child with the given field name, if any.
Get the child of the node that contains the given descendant, if any.
Get the child of the node that contains the given descendant, if any.
Get the child of the node that contains the given descendant, if any.
Get the child of the node that contains the given descendant, if any.
Get a list of children with the given field ID.
Get a list of children with the given field ID.
Get a list of children with the given field ID.
Get a list of children with the given field ID.
Get a list of children with the given field name.
Get a list of children with the given field name.
Get a list of children with the given field name.
Get a list of children with the given field name.
Get the node that contains the given descendant, if any.
Get the node that contains the given descendant, if any.
Get the node that contains the given descendant, if any.
Get the node that contains the given descendant, if any.
Get the smallest node within this node that spans the given point range, if any.
Get the smallest node within this node that spans the given byte range, if any.
Get the smallest node within this node that spans the given point range, if any.
Get the smallest node within this node that spans the given byte range, if any.
Get the smallest node within this node that spans the given point range, if any.
Get the smallest node within this node that spans the given byte range, if any.
Get the smallest node within this node that spans the given point range, if any.
Get the smallest node within this node that spans the given byte range, if any.
Edit this node to keep it in-sync with source code that has been edited.
Edit this node to keep it in-sync with source code that has been edited.
Edit this node to keep it in-sync with source code that has been edited.
Edit this node to keep it in-sync with source code that has been edited.
Get the field name of this node’s child at the given index, if available.
Get the field name of this node’s child at the given index, if available.
Get the field name of this node’s child at the given index, if available.
Get the field name of this node’s child at the given index, if available.
Get the field name of this node’s named child at the given index, if available.
Get the field name of this node’s named child at the given index, if available.
Get the field name of this node’s named child at the given index, if available.
Get the field name of this node’s named child at the given index, if available.
Get the node's named child at the given index, if any.
Get the node's named child at the given index, if any.
Get the node's named child at the given index, if any.
Get the node's named child at the given index, if any.
Get the smallest named node within this node that spans the given point range, if any.
Get the smallest named node within this node that spans the given byte range, if any.
Get the smallest named node within this node that spans the given point range, if any.
Get the smallest named node within this node that spans the given byte range, if any.
Get the smallest named node within this node that spans the given point range, if any.
Get the smallest named node within this node that spans the given byte range, if any.
Get the smallest named node within this node that spans the given point range, if any.
Get the smallest named node within this node that spans the given byte range, if any.
Get the source code of the node, if available.
Get the source code of the node, if available.
Get the source code of the node, if available.
Get the source code of the node, if available.
Create a new tree cursor starting from this node.
Create a new tree cursor starting from this node.
Create a new tree cursor starting from this node.
Create a new tree cursor starting from this node.