Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Document_Position

mattt edited this page Jan 22, 2020 · 3 revisions

Document.Position

A position within a document.

public struct Position: Hashable

Inheritance

Hashable, Comparable


Properties

line

The line number.

var line: Int

Line numbers start at 1 and increase monotonically.

column

The line number.

var column: Int

Column numbers start at 1 and increase monotonically.

Methods

<(lhs:rhs:)

public static func <(lhs: Document.Position, rhs: Document.Position) -> Bool
Clone this wiki locally