Position

data class Position(val line: Int, val column: Int) : Comparable<DocumentProvider.Position> (source)

Represents a position in a text document identified by a specific line and column. Used for precise referencing of specific locations within multi-line text content.

Constructors

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

Properties

Link copied to clipboard
val column: Int

The column number, starting from 0.

Link copied to clipboard
val line: Int

The line number, starting from 0.

Functions

Link copied to clipboard
open operator override fun compareTo(other: DocumentProvider.Position): Int

Compares this Position instance to another Position based on their line and column values.