Function Graph Overview
    Preparing search index...

    A utility class for matching against the AST using queries.

    [tree-sitter query reference](https://tree-sitter.github.io/tree-sitter/using-parsers#pattern-matching-with-queries

    Index

    Constructors

    Methods

    • Returns the first named syntax node from the query match, if present.

      Parameters

      • name: string

        Name of the capture

      Returns undefined | Node

      The syntax matching the capture name, if captured.

    • Returns the last named syntax node from the query match, if present.

      Parameters

      • name: string

        Name of the capture

      Returns undefined | Node

    • Returns the first named syntax node from the query match. Throws an error if no matching node exists.

      Parameters

      • name: string

      Returns Node

    • Returns the all named syntax nodes from the query match.

      Parameters

      • name: string

        Name of the capture

      Returns Node[]