Module source

Source
Expand description

This modules holds structures related to source files, ways to analyze them and to convert between byte positions and character positions.

Structs§

Location
Describes a location within a source file. The line is 1 indexed while the column is 0 indexed.
MultiByteChar
Identifies the position and the width of a multi-byte character in a Source.
Source
Holds the contents of a file together with the origins where the content came from. Besides the origin it also holds some information used in error reporting.

Enums§

SourceOrigin
This struct holds the origin from which a Source came from.
SpecialWidthChar
Identifies the position of a special width character in a Source. Special width in this context means a character with byte width != 1.