pub trait SemanticGroup: Database {
// Provided methods
fn lookup_resolved_generic_item_by_ptr<'db>(
&'db self,
id: LookupItemId<'db>,
ptr: TerminalIdentifierPtr<'db>,
) -> Option<ResolvedGenericItem<'db>> { ... }
fn lookup_resolved_concrete_item_by_ptr<'db>(
&'db self,
id: LookupItemId<'db>,
ptr: TerminalIdentifierPtr<'db>,
) -> Option<ResolvedConcreteItem<'db>> { ... }
fn module_semantic_diagnostics<'db>(
&'db self,
module_id: ModuleId<'db>,
) -> Maybe<Diagnostics<'db, SemanticDiagnostic<'db>>> { ... }
fn file_semantic_diagnostics<'db>(
&'db self,
file_id: FileId<'db>,
) -> Maybe<Diagnostics<'db, SemanticDiagnostic<'db>>> { ... }
fn default_analyzer_plugins_input(&self) -> &[AnalyzerPluginLongId] { ... }
fn default_analyzer_plugins<'db>(
&'db self,
) -> Arc<Vec<AnalyzerPluginId<'db>>> { ... }
fn analyzer_plugin_overrides_input(
&self,
) -> &OrderedHashMap<CrateInput, Arc<[AnalyzerPluginLongId]>> { ... }
fn analyzer_plugin_overrides<'db>(
&'db self,
) -> Arc<OrderedHashMap<CrateId<'db>, Arc<Vec<AnalyzerPluginId<'db>>>>> { ... }
fn crate_analyzer_plugins<'db>(
&'db self,
crate_id: CrateId<'db>,
) -> Arc<Vec<AnalyzerPluginId<'db>>> { ... }
fn declared_allows<'db>(
&self,
crate_id: CrateId<'db>,
) -> Arc<OrderedHashSet<String>> { ... }
fn cached_crate_semantic_data<'db>(
&'db self,
crate_id: CrateId<'db>,
) -> Option<ModuleSemanticDataCacheAndLoadingData<'db>> { ... }
}Provided Methods§
fn lookup_resolved_generic_item_by_ptr<'db>( &'db self, id: LookupItemId<'db>, ptr: TerminalIdentifierPtr<'db>, ) -> Option<ResolvedGenericItem<'db>>
fn lookup_resolved_concrete_item_by_ptr<'db>( &'db self, id: LookupItemId<'db>, ptr: TerminalIdentifierPtr<'db>, ) -> Option<ResolvedConcreteItem<'db>>
Sourcefn module_semantic_diagnostics<'db>(
&'db self,
module_id: ModuleId<'db>,
) -> Maybe<Diagnostics<'db, SemanticDiagnostic<'db>>>
fn module_semantic_diagnostics<'db>( &'db self, module_id: ModuleId<'db>, ) -> Maybe<Diagnostics<'db, SemanticDiagnostic<'db>>>
Aggregates module level semantic diagnostics.
Sourcefn file_semantic_diagnostics<'db>(
&'db self,
file_id: FileId<'db>,
) -> Maybe<Diagnostics<'db, SemanticDiagnostic<'db>>>
fn file_semantic_diagnostics<'db>( &'db self, file_id: FileId<'db>, ) -> Maybe<Diagnostics<'db, SemanticDiagnostic<'db>>>
Aggregates file level semantic diagnostics.
fn default_analyzer_plugins_input(&self) -> &[AnalyzerPluginLongId]
Sourcefn default_analyzer_plugins<'db>(&'db self) -> Arc<Vec<AnalyzerPluginId<'db>>>
fn default_analyzer_plugins<'db>(&'db self) -> Arc<Vec<AnalyzerPluginId<'db>>>
Interned version of default_analyzer_plugins.
fn analyzer_plugin_overrides_input( &self, ) -> &OrderedHashMap<CrateInput, Arc<[AnalyzerPluginLongId]>>
Sourcefn analyzer_plugin_overrides<'db>(
&'db self,
) -> Arc<OrderedHashMap<CrateId<'db>, Arc<Vec<AnalyzerPluginId<'db>>>>>
fn analyzer_plugin_overrides<'db>( &'db self, ) -> Arc<OrderedHashMap<CrateId<'db>, Arc<Vec<AnalyzerPluginId<'db>>>>>
Interned version of analyzer_plugin_overrides_input.
Sourcefn crate_analyzer_plugins<'db>(
&'db self,
crate_id: CrateId<'db>,
) -> Arc<Vec<AnalyzerPluginId<'db>>>
fn crate_analyzer_plugins<'db>( &'db self, crate_id: CrateId<'db>, ) -> Arc<Vec<AnalyzerPluginId<'db>>>
Returns AnalyzerPluginIds of the plugins set for the crate with CrateId.
Returns
SemanticGroupEx::set_override_crate_analyzer_plugins if it has been set,
or the (SemanticGroup::default_analyzer_plugins) otherwise.
Sourcefn declared_allows<'db>(
&self,
crate_id: CrateId<'db>,
) -> Arc<OrderedHashSet<String>>
fn declared_allows<'db>( &self, crate_id: CrateId<'db>, ) -> Arc<OrderedHashSet<String>>
Returns the set of allow that were declared as by a plugin.
An allow that is not in this set will be handled as an unknown allow.
Sourcefn cached_crate_semantic_data<'db>(
&'db self,
crate_id: CrateId<'db>,
) -> Option<ModuleSemanticDataCacheAndLoadingData<'db>>
fn cached_crate_semantic_data<'db>( &'db self, crate_id: CrateId<'db>, ) -> Option<ModuleSemanticDataCacheAndLoadingData<'db>>
Returns the ModuleSemanticData of all modules in the crate’s cache, and the loading data of the SemanticGroup in the crate.