Expand description
§solar-interface
Source positions, diagnostics, and related helper functions.
Important concepts in this module include:
Modules§
- config
 - solar-config
 - data_
structures  - solar-data-structures
 - diagnostics
 - Diagnostics implementation.
 - kw
 - This module contains all the defined keyword 
Symbols. - panic_
hook  - Functions for installing a custom panic hook.
 - source_
map  - SourceMap related types and operations.
 - sym
 - This module contains all the defined non-keyword 
Symbols. 
Macros§
- error_
code  - Used for creating an error code. The input must be exactly 4 decimal digits.
 - pluralize
 - Pluralize a word based on a count.
 
Structs§
- BytePos
 - A byte offset relative to the global source map.
 - Byte
Symbol  - Like 
Symbol, but for byte strings. - CharPos
 - A character offset.
 - Ident
 - An identifier.
 - Relative
Byte Pos  - A byte offset relative to file beginning.
 - Session
 - Information about the current compiler session.
 - Session
Builder  Sessionbuilder.- Source
Map  - Stores all the sources of the current compilation session.
 - Span
 - A source code location.
 - Spanned
 - A value paired with a source code location.
 - Symbol
 - An interned string.
 
Enums§
- Color
Choice  - Selection for overriding color output
 - Spanned
Option  - An 
Option-like enum that tracks the source location of an absent value. 
Functions§
- canonicalize
 - Like 
std::fs::canonicalize(), but on Windows it outputs the most compatible form of a path instead of UNC. - enter
 - Creates new session globals on the current thread if they doesn’t exist already and then executes the given closure.
 
Type Aliases§
- Result
 - Compiler result type.