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

    Interface Input

    A function that provides text content for parsing based on byte index and position

    • Get a chunk of text at the given byte offset.

      Parameters

      • index: number

        The byte index into the text

      • Optionalposition: Point

        Optional position in the text as {row, column}

      Returns string

      A string chunk, or null/undefined if no text at this index