pub trait AnalyzerPlugin:
Debug
+ Sync
+ Send {
// Required method
fn diagnostics(
&self,
db: &dyn SemanticGroup,
module_id: ModuleId,
) -> Vec<PluginDiagnostic>;
}
Expand description
A trait for an analyzer plugin: external plugin that generates additional diagnostics for modules.
Required Methods§
Sourcefn diagnostics(
&self,
db: &dyn SemanticGroup,
module_id: ModuleId,
) -> Vec<PluginDiagnostic>
fn diagnostics( &self, db: &dyn SemanticGroup, module_id: ModuleId, ) -> Vec<PluginDiagnostic>
Runs the plugin on a module.