Skip to main content

Module source

Module source 

Source
Expand description

Source model: files, positions, and spans.

Conventions: positions are 1-based, and a span is a half-open interval (end is exclusive). Spans carry a typed FileId instead of a raw file index.

Structs§

Position
A 1-based line/column position in a source file.
SourceFile
One source file in the program’s file registry.
Span
A half-open, 1-based source interval in one file.

Type Aliases§

FileId
A typed ID referencing a SourceFile in the program’s file arena.