cairo_lang_semantic::diagnostic

Type Alias SemanticDiagnostics

Source
pub type SemanticDiagnostics = DiagnosticsBuilder<SemanticDiagnostic>;

Aliased Type§

struct SemanticDiagnostics {
    pub error_count: usize,
    pub leaves: Vec<SemanticDiagnostic>,
    pub subtrees: Vec<Diagnostics<SemanticDiagnostic>>,
}

Fields§

§error_count: usize§leaves: Vec<SemanticDiagnostic>§subtrees: Vec<Diagnostics<SemanticDiagnostic>>

Trait Implementations§

Source§

impl SemanticDiagnosticsBuilder for SemanticDiagnostics

Source§

fn report( &mut self, stable_ptr: impl Into<SyntaxStablePtrId>, kind: SemanticDiagnosticKind, ) -> DiagnosticAdded

Report a diagnostic in the location of the given ptr.
Source§

fn report_after( &mut self, stable_ptr: impl Into<SyntaxStablePtrId>, kind: SemanticDiagnosticKind, ) -> DiagnosticAdded

Report a diagnostic in the location after the given ptr (with width 0).