Theia API Documentation v1.65.0
    Preparing search index...

    Pair of two positions.

    Hierarchy (View Summary)

    Index

    Constructors

    • Create a new range from two positions. If start is not before or equal to end, the values will be swapped.

      Parameters

      Returns Range

    • Create a new position from coordinates.

      Parameters

      • startLine: number

        a zero based line value

      • startCharacter: number

        a zero based character value

      • endLine: number

        a zero based line value

      • endCharacter: number

        a zero based character value

      Returns Range

    Properties

    End position.

    isEmpty: boolean

    true if start and end are equal

    isSingleLine: boolean

    true if start.line and end.line are equal

    start: Position

    Start position.

    Methods