Position

class Position(val source: PositionMap, val index: Int, val column: Int, val line: Int) : PositionMarker(source)

The Position marks a position in the source-code.

Since

0.1.0

Parameters

source

The source (mostly file) of the content

index

The index of the position

column

The column of the position

line

The line of the position

Constructors

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

Properties

Link copied to clipboard
open override val column: Int

The column of the position

Link copied to clipboard
open override val index: Int

The index of the position

Link copied to clipboard
open override val line: Int

The line of the position

Link copied to clipboard

The source

Functions

Link copied to clipboard
fun copy(): Position

Copies the position

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares the position to another position

Link copied to clipboard
open override fun hashCode(): Int

Creates a hashcode of the position

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

Creates a string-representation of the string