Function buildLineTable

  • Build a lookup table of line-start offsets for a given source string. This allows O(log n) offset-to-position conversion via binary search.

    Parameters

    • source: string

    Returns number[]

Generated using TypeDoc