pub struct SemaOutput {
pub functions: Vec<AnalyzedFunction>,
pub strings: Vec<String>,
pub warnings: Vec<DiagnosticWrapper<WarningKind>>,
pub type_pool: TypeInternPool,
pub comptime_dbg_output: Vec<String>,
}Expand description
Output from semantic analysis.
Contains all analyzed functions, struct definitions, enum definitions, and any warnings generated during analysis.
Fields§
§functions: Vec<AnalyzedFunction>Analyzed functions with typed IR.
strings: Vec<String>String literals indexed by their AIR string_const index.
warnings: Vec<DiagnosticWrapper<WarningKind>>Warnings collected during analysis.
type_pool: TypeInternPoolType intern pool (contains all types including arrays).
comptime_dbg_output: Vec<String>Lines of @dbg output collected during comptime evaluation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SemaOutput
impl RefUnwindSafe for SemaOutput
impl Send for SemaOutput
impl Sync for SemaOutput
impl Unpin for SemaOutput
impl UnwindSafe for SemaOutput
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