Module debris_common::input_file
source · Expand description
Input files are used to store the files required for successful compilation The big advantage of have a global storage of all possible input files is that this allows for extremely cheap spans which only consist of a (start, length) tuple. To get the corresponding file for a span, simply check whether the span lies withing file.offset and file.offset + file.length
Structs
- A code object contains the source code and optionally a path to the corresponding file
- A handy object to work in a specific input file
- A single input file, implementation detail
- Keeps track of all input files and allows to make cheap copy-able spans
Type Aliases
- The type of a code id, currently just a usize