pub struct CompileState {
pub ast: Ast,
pub interner: ThreadedRodeo,
pub rir: Rir,
pub functions: Vec<FunctionWithCfg>,
pub type_pool: TypeInternPool,
pub strings: Vec<String>,
pub warnings: Vec<CompileWarning>,
pub comptime_dbg_output: Vec<String>,
}Expand description
Intermediate compilation state after frontend processing.
This allows inspection of the IR at each stage, useful for
debugging and the --emit CLI flags.
Fields§
§ast: AstThe abstract syntax tree.
interner: ThreadedRodeoString interner used during compilation.
rir: RirThe untyped IR (RIR).
functions: Vec<FunctionWithCfg>Analyzed functions with typed IR and control flow graphs.
type_pool: TypeInternPoolType intern pool containing all struct and enum definitions.
strings: Vec<String>String literals indexed by their string_const index.
warnings: Vec<CompileWarning>Warnings collected during compilation.
comptime_dbg_output: Vec<String>Lines of @dbg output collected during comptime evaluation.
Auto Trait Implementations§
impl !Freeze for CompileState
impl !RefUnwindSafe for CompileState
impl Send for CompileState
impl Sync for CompileState
impl Unpin for CompileState
impl UnwindSafe for CompileState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more