SourcePosition

data class SourcePosition(val offset: Int, val line: Int, val column: Int)

A position in the complete input.

offset, line, and column are zero-based. Offsets and columns count UTF-16 code units, as used by Kotlin String indexing.

Constructors

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

Properties

Link copied to clipboard
val column: Int

zero-based UTF-16 column within line

Link copied to clipboard
val line: Int

absolute zero-based line

Link copied to clipboard
val offset: Int

absolute UTF-16 offset