SemanticGroup

Trait SemanticGroup 

Source
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§

Source

fn lookup_resolved_generic_item_by_ptr<'db>( &'db self, id: LookupItemId<'db>, ptr: TerminalIdentifierPtr<'db>, ) -> Option<ResolvedGenericItem<'db>>

Source

fn lookup_resolved_concrete_item_by_ptr<'db>( &'db self, id: LookupItemId<'db>, ptr: TerminalIdentifierPtr<'db>, ) -> Option<ResolvedConcreteItem<'db>>

Source

fn module_semantic_diagnostics<'db>( &'db self, module_id: ModuleId<'db>, ) -> Maybe<Diagnostics<'db, SemanticDiagnostic<'db>>>

Aggregates module level semantic diagnostics.

Source

fn file_semantic_diagnostics<'db>( &'db self, file_id: FileId<'db>, ) -> Maybe<Diagnostics<'db, SemanticDiagnostic<'db>>>

Aggregates file level semantic diagnostics.

Source

fn default_analyzer_plugins_input(&self) -> &[AnalyzerPluginLongId]

Source

fn default_analyzer_plugins<'db>(&'db self) -> Arc<Vec<AnalyzerPluginId<'db>>>

Interned version of default_analyzer_plugins.

Source

fn analyzer_plugin_overrides_input( &self, ) -> &OrderedHashMap<CrateInput, Arc<[AnalyzerPluginLongId]>>

Source

fn analyzer_plugin_overrides<'db>( &'db self, ) -> Arc<OrderedHashMap<CrateId<'db>, Arc<Vec<AnalyzerPluginId<'db>>>>>

Interned version of analyzer_plugin_overrides_input.

Source

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.

Source

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.

Source

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.

Implementors§