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§
Sourcefn user_location_with_plugin_notes(
&self,
db: &'db dyn Database,
file_notes: &PluginFileDiagnosticNotes<'db>,
) -> (SpanInFile<'db>, Vec<DiagnosticNote<'db>>)
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.