DotPosition

data class DotPosition(val line: Int, val characterInLine: Int, val offset: Int) : DocumentPosition

The DocumentPosition of the Caret.getDot; the rightmost position.

Author

Richard Arriaga

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val characterInLine: Int

The 0-based character position within the line.

Link copied to clipboard

The 1-based character position within the lineOneBased.

Link copied to clipboard
Link copied to clipboard
open override val line: Int

The 0-based line number of this DocumentPosition.

Link copied to clipboard

The 1-based line number of this DocumentPosition.

Link copied to clipboard
open override val offset: Int

The 0-based character position relative to the start of the document.

Functions

Link copied to clipboard

Answer the Element inside which this DocumentPosition resides.

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