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

    Type Alias Options

    Configuration options for parsing

    type Options = {
        bufferSize?: number;
        includedRanges?: Range[];
        progressCallback?: (index: number, hasError: boolean) => boolean;
    }
    Index

    Properties

    bufferSize?: number

    Size of the internal parsing buffer

    includedRanges?: Range[]

    Array of ranges to include when parsing the input

    progressCallback?: (index: number, hasError: boolean) => boolean

    A callback that receives the parse state during parsing.

    Type Declaration

      • (index: number, hasError: boolean): boolean
      • Parameters

        • index: number

          The byte offset in the document that the parser is currently at

        • hasError: boolean

          Indicates whether the parser has encountered an error during parsing

        Returns boolean

        true to stop parsing or false to continue