Interface QueryMatch

A match of a Query to a particular set of SyntaxNodes.

interface QueryMatch {
    captures: QueryCapture[];
    pattern: number;
}

Properties

Properties

captures: QueryCapture[]

Array of nodes that were captured in the pattern match

pattern: number

The index of the pattern that was matched. Each pattern in a query is assigned a numeric index in sequence.