Function mergeRanges

  • Combine an array of Ranges into a single larger Range.

    Parameters

    • ranges: Range[]

      an array of Ranges

    • parentRange: Range = ...

      the range to assume if ranges is an empty array

    Returns {
        endColumn: number;
        endLineNumber: number;
        startColumn: number;
        startLineNumber: number;
    }

    • endColumn: number
    • endLineNumber: number
    • startColumn: number
    • startLineNumber: number

Generated using TypeDoc