UserLocationWithPluginNotes

Trait UserLocationWithPluginNotes 

Source
pub trait UserLocationWithPluginNotes<'db> {
    // Required method
    fn user_location_with_plugin_notes(
        &self,
        db: &'db dyn Database,
        file_notes: &PluginFileDiagnosticNotes<'db>,
    ) -> (SpanInFile<'db>, Vec<DiagnosticNote<'db>>);
}

Required Methods§

Source

fn user_location_with_plugin_notes( &self, db: &'db dyn Database, file_notes: &PluginFileDiagnosticNotes<'db>, ) -> (SpanInFile<'db>, Vec<DiagnosticNote<'db>>)

Get the location of the originating user code, along with DiagnosticNotes for this translation. The notes are collected from the parent files of the originating location.

Implementations on Foreign Types§

Source§

impl<'db> UserLocationWithPluginNotes<'db> for SpanInFile<'db>

Source§

fn user_location_with_plugin_notes( &self, db: &'db dyn Database, file_notes: &PluginFileDiagnosticNotes<'db>, ) -> (SpanInFile<'db>, Vec<DiagnosticNote<'db>>)

Implementors§