Skip to content

#[final] Location

A span of source code in a file.

Lines and columns are zero-based. Columns and lengths count Unicode scalar values, a tab counting as one, and a length includes the line breaks the span crosses. Locations are equal when their files and spans are.

Fields

column @ Int [get]

The column the span starts at.

len @ Int [get]

The length of the span.

line @ Int [get]

The line the span starts on.

source @ Str [get]

The source file.