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:
- Capture:index ()
-
Get the index of the capture.
Returns:
-
integer
- Capture:match ()
-
Get the
QueryMatchthe capture belongs to.Returns:
- Capture:query ()
-
Get the Query the capture belongs to.
Returns:
- Capture:name ()
-
Get the name of the capture.
Returns: