DocumentPosition

sealed class DocumentPosition : JSONFriendly

An abstract location within a document opened in an AvailEditor.

Author

Richard Arriaga

Functions

Link copied to clipboard
fun containedInElement(document: Document): Element

Answer the Element inside which this DocumentPosition resides.

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

Properties

Link copied to clipboard
abstract val characterInLine: Int

The 0-based character position within the line.

Link copied to clipboard
val characterInLineOneBased: Int

The 1-based character position within the lineOneBased.

Link copied to clipboard
open val jsonFormattedString: String
Link copied to clipboard
open val jsonPrettyPrintedFormattedString: String
Link copied to clipboard
abstract val line: Int

The 0-based line number of this DocumentPosition.

Link copied to clipboard
val lineOneBased: Int

The 1-based line number of this DocumentPosition.

Link copied to clipboard
abstract val offset: Int

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

Inheritors

Link copied to clipboard
Link copied to clipboard