SourcePosition

class SourcePosition(val lineNumber: Int, val lineColumn: Int) : Comparable<SourcePosition> (source)

Identifies a position within a text source file.

Constructors

Link copied to clipboard
constructor(lineNumber: Int, lineColumn: Int)
constructor()

Returns a source position at the start of the file (1, 1).

Properties

Link copied to clipboard

The line column, starting from 1.

Link copied to clipboard

The line number, starting from 1.

Functions

Link copied to clipboard
open operator override fun compareTo(other: SourcePosition): Int

Compares this source position to other.

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 position.