cairo_lang_semantic::diagnostic

Trait SemanticDiagnosticsBuilder

Source
pub trait SemanticDiagnosticsBuilder {
    // Required methods
    fn report(
        &mut self,
        stable_ptr: impl Into<SyntaxStablePtrId>,
        kind: SemanticDiagnosticKind,
    ) -> DiagnosticAdded;
    fn report_after(
        &mut self,
        stable_ptr: impl Into<SyntaxStablePtrId>,
        kind: SemanticDiagnosticKind,
    ) -> DiagnosticAdded;
}

Required Methods§

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§