Skip to main content

Module file

Module file 

Source
Expand description

Source files and the SourceMap that interns them.

A SourceMap is the compiler’s registry of loaded source files. It owns the file text, mints opaque FileId handles, and precomputes each file’s LineMap. Files are append-only once interned — source snapshots (§13.1) must remain stable for the lifetime of a compilation session.

Structs§

FileId
An opaque handle to one interned source file.
FileView
A shared view of an interned source file.
SourceFile
One loaded source file: its id, the path it was loaded from, the full text, and a precomputed line table.
SourceMap
The compiler’s registry of source files.