Module source_map

Source
Expand description

The source map provides an address space for positions in spans that is global across the source files that are compiled together. The source files are organized in a sequence, with the positions of each source following the ones of the previous source in the address space of positions (except for the first source, which starts at the beginning of the address space). This way, any place in any source is identified by a single position within the address space covered by the sequence of sources; the source file is determined from the position.

Structs§

LineCol
File / Line / Column information on a BytePos.
LineContents
SourceFile
A single source in the SourceMap.
SourceMap
The source map containing all recorded sources, methods to register new ones, and methods to query about spans in relation to recorded sources.
SourceMapInner 🔒
Actual data of the source map. We use this setup for purposes of interior mutability.

Enums§

FileName
A file name.

Functions§

is_color
Is the env var NOCOLOR not enabled?