Expand description
§solar-interface
Source positions, diagnostics, and related helper functions.
Important concepts in this module include:
Re-exports§
pub use source_map::SourceMap;
pub use solar_config as config;
pub use solar_data_structures as data_structures;
Modules§
- diagnostics
- Diagnostics implementation.
- kw
- This module contains all the defined keyword
Symbol
s. - 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
Symbol
s.
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.
- 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 - Builder for
Session
. - Session
Globals - Per-session global variables.
- Span
- A source code location.
- Symbol
- An interned string.
Enums§
- Color
Choice - Selection for overriding color output
Constants§
- VERSION
- The current version of the Solar compiler.
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.