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

Object Safety§

This trait is not object safe.

Implementors§