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;
Modules§
- Diagnostics implementation.
- This module contains all the defined keyword
Symbol
s. - Functions for installing a custom panic hook.
- SourceMap related types and operations.
- This module contains all the defined non-keyword
Symbol
s.
Macros§
- Used for creating an error code. The input must be exactly 4 decimal digits.
- Pluralize a word based on a count.
Structs§
- A byte offset relative to the global source map.
- A character offset.
- An identifier.
- A byte offset relative to file beginning.
- Information about the current compiler session.
- Builder for
Session
. - Per-session global variables.
- A source code location.
- An interned string.
Enums§
- Selection for overriding color output
Constants§
- The current version of the Solar compiler.
Traits§
Functions§
- Like
std::fs::canonicalize()
, but on Windows it outputs the most compatible form of a path instead of UNC. - Creates new session globals on the current thread if they doesn’t exist already and then executes the given closure.
Type Aliases§
- Compiler result type.