interface TreeSitterInformation {
    grammarVersion: number;
    name: "tree-sitter";
    treeSitterQuery(
        source: string | Query,
        force?: boolean,
    ): Promise<QueryCapture[]>;
}

Hierarchy (View Summary)

Hierarchy-Diagram

UML class diagram of TreeSitterInformation

Properties

grammarVersion: number
name: "tree-sitter"

Methods

  • Runs the given tree-sitter query using the underlying tree-sitter parser and returns the resulting capture.

    Parameters

    • source: string | Query

      The tree-sitter query to run.

    • Optionalforce: boolean

      Do not use the cache, instead force a new parse.

    Returns Promise<QueryCapture[]>