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).