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.
- File
View - A shared view of an interned source file.
- Source
File - One loaded source file: its id, the path it was loaded from, the full text, and a precomputed line table.
- Source
Map - The compiler’s registry of source files.