Class Query.Capture

A single capture of a Query.

Analogous to TSQueryCapture.

Methods

Capture:node () Get the Node of the capture.
Capture:index () Get the index of the capture.
Capture:match () Get the QueryMatch the capture belongs to.
Capture:query () Get the Query the capture belongs to.
Capture:name () Get the name of the capture.


Methods

Capture:node ()
Get the Node of the capture.

Returns:

    Node
Capture:index ()
Get the index of the capture.

Returns:

    integer
Capture:match ()
Get the QueryMatch the capture belongs to.

Returns:

    Match
Capture:query ()
Get the Query the capture belongs to.

Returns:

    Query
Capture:name ()
Get the name of the capture.

Returns:

    Node
generated by LDoc 1.5.0 Last updated 2024-04-16 14:22:44