Class TagAbstract

Description of a source location. Tags are used to annotate input sources, particularly for [[Diagnostic diagnostic]] purposes. A [[Mark]] tag annotates a source position. A [[Span]] tag annotate a source range.

See

[[Diagnostic]]

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

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 Tag

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

    Parameters

    Returns Tag

Generated using TypeDoc