DocumentPosition

sealed class DocumentPosition : JSONFriendly

An abstract location within a document opened in an AvailEditor.

Author

Richard Arriaga

Inheritors

Properties

Link copied to clipboard
abstract 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
abstract 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
abstract 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 writeTo(writer: JSONWriter)