SourceRange

class SourceRange(val fileRef: SourceFileRef, val start: SourcePosition, val endExclusive: SourcePosition)(source)

Identifies a non-inverted range in a text source file.

Constructors

Link copied to clipboard
constructor(fileRef: SourceFileRef, start: SourcePosition, endExclusive: SourcePosition)
constructor(fileRef: SourceFileRef, position: SourcePosition)

Constructs an empty source range at given position in fileRef.

Properties

Link copied to clipboard

The end of this range, exclusive.

Link copied to clipboard

The file in which a range is identified.

Link copied to clipboard

The start of this range, inclusive.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Returns a human-readable representation of this source range.