Caret

data class Caret(val line: Int, val offset: Int)(source)

Represents the position of a caret within a text document.

Constructors

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

Properties

Link copied to clipboard
val line: Int

The line number where the caret is located, starting from 0.

Link copied to clipboard
val offset: Int

The position within the line (character index) where the caret is located, starting from 0.