Position

data class Position(val line: Int, val column: Int, val index: Int)

Position in the source code for error reporting.

Constructors

Link copied to clipboard
constructor(line: Int, column: Int, index: Int)

Properties

Link copied to clipboard
val column: Int

Column number (1-based)

Link copied to clipboard
val index: Int

Absolute character index (0-based)

Link copied to clipboard
val line: Int

Line number (1-based)

Functions

Link copied to clipboard
open override fun toString(): String