Class Span

Description of a source range, identified by a closed interval between start and end [[Mark marks]].

Hierarchy

Properties

end: Mark

The last source position covered by this Tag.

start: Mark

The first source position covered by this Tag.

Methods

  • Writes a developer readable, debug-formatted string representation of this object to output.

    Type Parameters

    • T

    Parameters

    Returns Output<T>

    the continuation of the output.

    Throws

    [[OutputException]] if the output exits the cont state before the full debug string has been written.

  • Writes a human readable, display-formatted string representation of this object to output.

    Type Parameters

    • T

    Parameters

    Returns Output<T>

    the continuation of the output.

    Throws

    [[OutputException]] if the output exits the cont state before the full display string has been written.

  • Parameters

    • that: unknown

    Returns boolean

  • Returns number

  • Returns the position of this Tag relative to the given mark.

    Parameters

    Returns Span

  • Returns string

  • Returns a Tag that includes all source locations covered by both this tag, and that tag.

    Parameters

    Returns Tag

  • Returns a new Span representing the closed interval between the given start and end marks.

    Parameters

    Returns Span

Generated using TypeDoc