tree-sitter - v0.25.1
    Preparing search index...

    Interface QueryMatch

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

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

    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.