Trait cairo_lang_semantic::db::SemanticGroup
source · pub trait SemanticGroup: Database + HasQueryGroup<SemanticDatabase> + DefsGroup + Upcast<dyn DefsGroup> + Upcast<dyn ParserGroup> + Upcast<dyn FilesGroup> + AsFilesGroupMut + Elongate {
Show 271 methods
// Required methods
fn intern_function(&self, key0: FunctionLongId) -> FunctionId;
fn lookup_intern_function(&self, key0: FunctionId) -> FunctionLongId;
fn intern_concrete_function_with_body(
&self,
key0: ConcreteFunctionWithBody,
) -> ConcreteFunctionWithBodyId;
fn lookup_intern_concrete_function_with_body(
&self,
key0: ConcreteFunctionWithBodyId,
) -> ConcreteFunctionWithBody;
fn intern_concrete_struct(
&self,
key0: ConcreteStructLongId,
) -> ConcreteStructId;
fn lookup_intern_concrete_struct(
&self,
key0: ConcreteStructId,
) -> ConcreteStructLongId;
fn intern_concrete_enum(&self, key0: ConcreteEnumLongId) -> ConcreteEnumId;
fn lookup_intern_concrete_enum(
&self,
key0: ConcreteEnumId,
) -> ConcreteEnumLongId;
fn intern_concrete_extern_type(
&self,
key0: ConcreteExternTypeLongId,
) -> ConcreteExternTypeId;
fn lookup_intern_concrete_extern_type(
&self,
key0: ConcreteExternTypeId,
) -> ConcreteExternTypeLongId;
fn intern_concrete_trait(
&self,
key0: ConcreteTraitLongId,
) -> ConcreteTraitId;
fn lookup_intern_concrete_trait(
&self,
key0: ConcreteTraitId,
) -> ConcreteTraitLongId;
fn intern_concrete_trait_function(
&self,
key0: ConcreteTraitGenericFunctionLongId,
) -> ConcreteTraitGenericFunctionId;
fn lookup_intern_concrete_trait_function(
&self,
key0: ConcreteTraitGenericFunctionId,
) -> ConcreteTraitGenericFunctionLongId;
fn intern_concrete_trait_type(
&self,
key0: ConcreteTraitTypeLongId,
) -> ConcreteTraitTypeId;
fn lookup_intern_concrete_trait_type(
&self,
key0: ConcreteTraitTypeId,
) -> ConcreteTraitTypeLongId;
fn intern_concrete_trait_constant(
&self,
key0: ConcreteTraitConstantLongId,
) -> ConcreteTraitConstantId;
fn lookup_intern_concrete_trait_constant(
&self,
key0: ConcreteTraitConstantId,
) -> ConcreteTraitConstantLongId;
fn intern_concrete_impl(&self, key0: ConcreteImplLongId) -> ConcreteImplId;
fn lookup_intern_concrete_impl(
&self,
key0: ConcreteImplId,
) -> ConcreteImplLongId;
fn intern_concrete_trait_impl(
&self,
key0: ConcreteTraitImplLongId,
) -> ConcreteTraitImplId;
fn lookup_intern_concrete_trait_impl(
&self,
key0: ConcreteTraitImplId,
) -> ConcreteTraitImplLongId;
fn intern_type(&self, key0: TypeLongId) -> TypeId;
fn lookup_intern_type(&self, key0: TypeId) -> TypeLongId;
fn intern_const_value(&self, key0: ConstValue) -> ConstValueId;
fn lookup_intern_const_value(&self, key0: ConstValueId) -> ConstValue;
fn intern_impl(&self, key0: ImplLongId) -> ImplId;
fn lookup_intern_impl(&self, key0: ImplId) -> ImplLongId;
fn intern_impl_var(&self, key0: ImplVar) -> ImplVarId;
fn lookup_intern_impl_var(&self, key0: ImplVarId) -> ImplVar;
fn priv_constant_semantic_data(
&self,
key0: ConstantId,
) -> Maybe<ConstantData>;
fn constant_semantic_diagnostics(
&self,
key0: ConstantId,
) -> Diagnostics<SemanticDiagnostic>;
fn constant_semantic_data(&self, key0: ConstantId) -> Maybe<Constant>;
fn constant_resolver_data(
&self,
key0: ConstantId,
) -> Maybe<Arc<ResolverData>>;
fn constant_const_value(&self, key0: ConstantId) -> Maybe<ConstValue>;
fn constant_const_type(&self, key0: ConstantId) -> Maybe<TypeId>;
fn priv_use_semantic_data(&self, key0: UseId) -> Maybe<UseData>;
fn use_semantic_diagnostics(
&self,
key0: UseId,
) -> Diagnostics<SemanticDiagnostic>;
fn use_resolver_data(&self, key0: UseId) -> Maybe<Arc<ResolverData>>;
fn priv_module_semantic_data(
&self,
key0: ModuleId,
) -> Maybe<Arc<ModuleSemanticData>>;
fn module_item_by_name(
&self,
key0: ModuleId,
key1: SmolStr,
) -> Maybe<Option<ModuleItemId>>;
fn module_item_info_by_name(
&self,
key0: ModuleId,
key1: SmolStr,
) -> Maybe<Option<ModuleItemInfo>>;
fn module_attributes(&self, key0: ModuleId) -> Maybe<Vec<Attribute>>;
fn module_usable_trait_ids(
&self,
key0: ModuleId,
) -> Maybe<Arc<OrderedHashSet<TraitId>>>;
fn priv_struct_declaration_data(
&self,
key0: StructId,
) -> Maybe<StructDeclarationData>;
fn struct_declaration_diagnostics(
&self,
key0: StructId,
) -> Diagnostics<SemanticDiagnostic>;
fn struct_attributes(&self, key0: StructId) -> Maybe<Vec<Attribute>>;
fn struct_generic_params(&self, key0: StructId) -> Maybe<Vec<GenericParam>>;
fn struct_generic_params_data(
&self,
key0: StructId,
) -> Maybe<GenericParamsData>;
fn struct_declaration_resolver_data(
&self,
key0: StructId,
) -> Maybe<Arc<ResolverData>>;
fn priv_struct_definition_data(
&self,
key0: StructId,
) -> Maybe<StructDefinitionData>;
fn struct_definition_diagnostics(
&self,
key0: StructId,
) -> Diagnostics<SemanticDiagnostic>;
fn struct_members(
&self,
key0: StructId,
) -> Maybe<OrderedHashMap<SmolStr, Member>>;
fn struct_definition_resolver_data(
&self,
key0: StructId,
) -> Maybe<Arc<ResolverData>>;
fn priv_enum_declaration_data(
&self,
key0: EnumId,
) -> Maybe<EnumDeclarationData>;
fn enum_declaration_diagnostics(
&self,
key0: EnumId,
) -> Diagnostics<SemanticDiagnostic>;
fn enum_generic_params(&self, key0: EnumId) -> Maybe<Vec<GenericParam>>;
fn enum_generic_params_data(&self, key0: EnumId) -> Maybe<GenericParamsData>;
fn enum_attributes(&self, key0: EnumId) -> Maybe<Vec<Attribute>>;
fn enum_declaration_resolver_data(
&self,
key0: EnumId,
) -> Maybe<Arc<ResolverData>>;
fn priv_enum_definition_data(
&self,
key0: EnumId,
) -> Maybe<EnumDefinitionData>;
fn enum_definition_diagnostics(
&self,
key0: EnumId,
) -> Diagnostics<SemanticDiagnostic>;
fn enum_variants(
&self,
key0: EnumId,
) -> Maybe<OrderedHashMap<SmolStr, VariantId>>;
fn variant_semantic(&self, key0: EnumId, key1: VariantId) -> Maybe<Variant>;
fn enum_definition_resolver_data(
&self,
key0: EnumId,
) -> Maybe<Arc<ResolverData>>;
fn module_type_alias_semantic_diagnostics(
&self,
key0: ModuleTypeAliasId,
) -> Diagnostics<SemanticDiagnostic>;
fn module_type_alias_resolved_type(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<TypeId>;
fn module_type_alias_generic_params(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<Vec<GenericParam>>;
fn module_type_alias_resolver_data(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<Arc<ResolverData>>;
fn priv_module_type_alias_generic_params_data(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<GenericParamsData>;
fn priv_module_type_alias_semantic_data(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<ModuleTypeAliasData>;
fn impl_alias_impl_def(&self, key0: ImplAliasId) -> Maybe<ImplDefId>;
fn priv_impl_alias_semantic_data(
&self,
key0: ImplAliasId,
) -> Maybe<ImplAliasData>;
fn impl_alias_semantic_diagnostics(
&self,
key0: ImplAliasId,
) -> Diagnostics<SemanticDiagnostic>;
fn impl_alias_resolved_impl(&self, key0: ImplAliasId) -> Maybe<ImplId>;
fn impl_alias_generic_params(
&self,
key0: ImplAliasId,
) -> Maybe<Vec<GenericParam>>;
fn impl_alias_generic_params_data(
&self,
key0: ImplAliasId,
) -> Maybe<GenericParamsData>;
fn impl_alias_resolver_data(
&self,
key0: ImplAliasId,
) -> Maybe<Arc<ResolverData>>;
fn impl_alias_attributes(&self, key0: ImplAliasId) -> Maybe<Vec<Attribute>>;
fn trait_semantic_declaration_diagnostics(
&self,
key0: TraitId,
) -> Diagnostics<SemanticDiagnostic>;
fn trait_generic_params(&self, key0: TraitId) -> Maybe<Vec<GenericParam>>;
fn trait_generic_params_data(
&self,
key0: TraitId,
) -> Maybe<GenericParamsData>;
fn trait_attributes(&self, key0: TraitId) -> Maybe<Vec<Attribute>>;
fn trait_resolver_data(&self, key0: TraitId) -> Maybe<Arc<ResolverData>>;
fn priv_trait_declaration_data(
&self,
key0: TraitId,
) -> Maybe<TraitDeclarationData>;
fn trait_semantic_definition_diagnostics(
&self,
key0: TraitId,
) -> Diagnostics<SemanticDiagnostic>;
fn trait_required_item_names(
&self,
key0: TraitId,
) -> Maybe<OrderedHashSet<SmolStr>>;
fn trait_item_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitItemId>>;
fn trait_functions(
&self,
key0: TraitId,
) -> Maybe<OrderedHashMap<SmolStr, TraitFunctionId>>;
fn trait_function_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitFunctionId>>;
fn trait_types(
&self,
key0: TraitId,
) -> Maybe<OrderedHashMap<SmolStr, TraitTypeId>>;
fn trait_type_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitTypeId>>;
fn trait_constants(
&self,
key0: TraitId,
) -> Maybe<OrderedHashMap<SmolStr, TraitConstantId>>;
fn trait_constant_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitConstantId>>;
fn trait_impls(
&self,
key0: TraitId,
) -> Maybe<OrderedHashMap<SmolStr, TraitImplId>>;
fn trait_impl_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitImplId>>;
fn priv_trait_definition_data(
&self,
key0: TraitId,
) -> Maybe<TraitDefinitionData>;
fn trait_type_diagnostics(
&self,
key0: TraitTypeId,
) -> Diagnostics<SemanticDiagnostic>;
fn trait_type_generic_params(
&self,
key0: TraitTypeId,
) -> Maybe<Vec<GenericParam>>;
fn trait_type_attributes(&self, key0: TraitTypeId) -> Maybe<Vec<Attribute>>;
fn trait_type_resolver_data(
&self,
key0: TraitTypeId,
) -> Maybe<Arc<ResolverData>>;
fn priv_trait_type_generic_params_data(
&self,
key0: TraitTypeId,
) -> Maybe<GenericParamsData>;
fn priv_trait_type_data(
&self,
key0: TraitTypeId,
) -> Maybe<TraitItemTypeData>;
fn trait_constant_diagnostics(
&self,
key0: TraitConstantId,
) -> Diagnostics<SemanticDiagnostic>;
fn trait_constant_attributes(
&self,
key0: TraitConstantId,
) -> Maybe<Vec<Attribute>>;
fn trait_constant_type(&self, key0: TraitConstantId) -> Maybe<TypeId>;
fn trait_constant_resolver_data(
&self,
key0: TraitConstantId,
) -> Maybe<Arc<ResolverData>>;
fn priv_trait_constant_data(
&self,
key0: TraitConstantId,
) -> Maybe<TraitItemConstantData>;
fn concrete_trait_constant_type(
&self,
key0: ConcreteTraitConstantId,
) -> Maybe<TypeId>;
fn trait_impl_diagnostics(
&self,
key0: TraitImplId,
) -> Diagnostics<SemanticDiagnostic>;
fn trait_impl_attributes(&self, key0: TraitImplId) -> Maybe<Vec<Attribute>>;
fn trait_impl_concrete_trait(
&self,
key0: TraitImplId,
) -> Maybe<ConcreteTraitId>;
fn trait_impl_resolver_data(
&self,
key0: TraitImplId,
) -> Maybe<Arc<ResolverData>>;
fn priv_trait_impl_data(
&self,
key0: TraitImplId,
) -> Maybe<TraitItemImplData>;
fn concrete_trait_impl_concrete_trait(
&self,
key0: ConcreteTraitImplId,
) -> Maybe<ConcreteTraitId>;
fn trait_function_declaration_diagnostics(
&self,
key0: TraitFunctionId,
) -> Diagnostics<SemanticDiagnostic>;
fn trait_function_signature(
&self,
key0: TraitFunctionId,
) -> Maybe<Signature>;
fn trait_function_generic_params(
&self,
key0: TraitFunctionId,
) -> Maybe<Vec<GenericParam>>;
fn priv_trait_function_generic_params_data(
&self,
key0: TraitFunctionId,
) -> Maybe<GenericParamsData>;
fn trait_function_attributes(
&self,
key0: TraitFunctionId,
) -> Maybe<Vec<Attribute>>;
fn trait_function_resolver_data(
&self,
key0: TraitFunctionId,
) -> Maybe<Arc<ResolverData>>;
fn trait_function_declaration_inline_config(
&self,
key0: TraitFunctionId,
) -> Maybe<InlineConfiguration>;
fn trait_function_declaration_implicit_precedence(
&self,
key0: TraitFunctionId,
) -> Maybe<ImplicitPrecedence>;
fn trait_function_declaration_implicits(
&self,
key0: TraitFunctionId,
) -> Maybe<Vec<TypeId>>;
fn priv_trait_function_declaration_data(
&self,
key0: TraitFunctionId,
) -> Maybe<FunctionDeclarationData>;
fn trait_function_body_diagnostics(
&self,
key0: TraitFunctionId,
) -> Diagnostics<SemanticDiagnostic>;
fn trait_function_body(
&self,
key0: TraitFunctionId,
) -> Maybe<Option<Arc<FunctionBody>>>;
fn priv_trait_function_body_data(
&self,
key0: TraitFunctionId,
) -> Maybe<Option<FunctionBodyData>>;
fn concrete_trait_function_generic_params(
&self,
key0: ConcreteTraitGenericFunctionId,
) -> Maybe<Vec<GenericParam>>;
fn concrete_trait_function_signature(
&self,
key0: ConcreteTraitGenericFunctionId,
) -> Maybe<Signature>;
fn module_impl_ids_for_trait_filter(
&self,
key0: ModuleId,
key1: TraitFilter,
) -> Maybe<Vec<UninferredImpl>>;
fn impl_impl_ids_for_trait_filter(
&self,
key0: ImplId,
key1: TraitFilter,
) -> Maybe<Vec<UninferredImpl>>;
fn canonic_trait_solutions(
&self,
key0: CanonicalTrait,
key1: ImplLookupContext,
) -> Result<SolutionSet<CanonicalImpl>, InferenceError>;
fn impl_semantic_declaration_diagnostics(
&self,
key0: ImplDefId,
) -> Diagnostics<SemanticDiagnostic>;
fn impl_def_generic_params_data(
&self,
key0: ImplDefId,
) -> Maybe<GenericParamsData>;
fn impl_def_generic_params(
&self,
key0: ImplDefId,
) -> Maybe<Vec<GenericParam>>;
fn impl_def_resolver_data(
&self,
key0: ImplDefId,
) -> Maybe<Arc<ResolverData>>;
fn impl_def_concrete_trait(&self, key0: ImplDefId) -> Maybe<ConcreteTraitId>;
fn impl_def_substitution(
&self,
key0: ImplDefId,
) -> Maybe<Arc<GenericSubstitution>>;
fn impl_def_attributes(&self, key0: ImplDefId) -> Maybe<Vec<Attribute>>;
fn impl_concrete_trait(&self, key0: ImplId) -> Maybe<ConcreteTraitId>;
fn impl_def_trait(&self, key0: ImplDefId) -> Maybe<TraitId>;
fn priv_impl_declaration_data(
&self,
key0: ImplDefId,
) -> Maybe<ImplDeclarationData>;
fn impl_semantic_definition_diagnostics(
&self,
key0: ImplDefId,
) -> Diagnostics<SemanticDiagnostic>;
fn impl_item_by_name(
&self,
key0: ImplDefId,
key1: SmolStr,
) -> Maybe<Option<ImplItemId>>;
fn impl_implicit_impl_by_name(
&self,
key0: ImplDefId,
key1: SmolStr,
) -> Maybe<Option<TraitImplId>>;
fn impl_types(
&self,
key0: ImplDefId,
) -> Maybe<Arc<OrderedHashMap<ImplTypeDefId, ItemTypeAlias>>>;
fn impl_type_ids(&self, key0: ImplDefId) -> Maybe<Arc<[ImplTypeDefId]>>;
fn impl_type_by_id(
&self,
key0: ImplTypeDefId,
) -> Maybe<Option<ItemTypeAlias>>;
fn impl_type_by_trait_type(
&self,
key0: ImplDefId,
key1: TraitTypeId,
) -> Maybe<ImplTypeDefId>;
fn impl_constants(
&self,
key0: ImplDefId,
) -> Maybe<Arc<OrderedHashMap<ImplConstantDefId, ItemConstant>>>;
fn impl_impls(
&self,
key0: ImplDefId,
) -> Maybe<Arc<OrderedHashMap<ImplImplDefId, ItemImplAlias>>>;
fn impl_impl_ids(&self, key0: ImplDefId) -> Maybe<Arc<[ImplImplDefId]>>;
fn impl_impl_by_id(
&self,
key0: ImplImplDefId,
) -> Maybe<Option<ItemImplAlias>>;
fn impl_impl_by_trait_impl(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Maybe<ImplImplDefId>;
fn is_implicit_impl_impl(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Maybe<bool>;
fn impl_constant_by_trait_constant(
&self,
key0: ImplDefId,
key1: TraitConstantId,
) -> Maybe<ImplConstantDefId>;
fn impl_functions(
&self,
key0: ImplDefId,
) -> Maybe<OrderedHashMap<SmolStr, ImplFunctionId>>;
fn impl_function_by_trait_function(
&self,
key0: ImplDefId,
key1: TraitFunctionId,
) -> Maybe<Option<ImplFunctionId>>;
fn priv_impl_definition_data(
&self,
key0: ImplDefId,
) -> Maybe<ImplDefinitionData>;
fn priv_impl_is_fully_concrete(&self, key0: ImplId) -> bool;
fn priv_impl_is_var_free(&self, key0: ImplId) -> bool;
fn impl_type_def_semantic_diagnostics(
&self,
key0: ImplTypeDefId,
) -> Diagnostics<SemanticDiagnostic>;
fn impl_type_def_resolved_type(&self, key0: ImplTypeDefId) -> Maybe<TypeId>;
fn impl_type_def_generic_params(
&self,
key0: ImplTypeDefId,
) -> Maybe<Vec<GenericParam>>;
fn impl_type_def_attributes(
&self,
key0: ImplTypeDefId,
) -> Maybe<Vec<Attribute>>;
fn impl_type_def_resolver_data(
&self,
key0: ImplTypeDefId,
) -> Maybe<Arc<ResolverData>>;
fn impl_type_def_trait_type(
&self,
key0: ImplTypeDefId,
) -> Maybe<TraitTypeId>;
fn priv_impl_type_semantic_data(
&self,
key0: ImplTypeDefId,
) -> Maybe<ImplItemTypeData>;
fn priv_impl_type_def_generic_params_data(
&self,
key0: ImplTypeDefId,
) -> Maybe<GenericParamsData>;
fn impl_type_concrete_implized(&self, key0: ImplTypeId) -> Maybe<TypeId>;
fn impl_constant_def_semantic_diagnostics(
&self,
key0: ImplConstantDefId,
) -> Diagnostics<SemanticDiagnostic>;
fn impl_constant_def_value(
&self,
key0: ImplConstantDefId,
) -> Maybe<ConstValueId>;
fn impl_constant_def_resolver_data(
&self,
key0: ImplConstantDefId,
) -> Maybe<Arc<ResolverData>>;
fn impl_constant_def_trait_constant(
&self,
key0: ImplConstantDefId,
) -> Maybe<TraitConstantId>;
fn priv_impl_constant_semantic_data(
&self,
key0: ImplConstantDefId,
) -> Maybe<ImplItemConstantData>;
fn impl_constant_implized_by_context(
&self,
key0: ImplConstantId,
key1: ImplDefId,
) -> Maybe<ConstValueId>;
fn impl_constant_concrete_implized_value(
&self,
key0: ImplConstantId,
) -> Maybe<ConstValueId>;
fn impl_constant_concrete_implized_type(
&self,
key0: ImplConstantId,
) -> Maybe<TypeId>;
fn impl_impl_def_semantic_diagnostics(
&self,
key0: ImplImplDefId,
) -> Diagnostics<SemanticDiagnostic>;
fn impl_impl_def_resolver_data(
&self,
key0: ImplImplDefId,
) -> Maybe<Arc<ResolverData>>;
fn impl_impl_def_trait_impl(
&self,
key0: ImplImplDefId,
) -> Maybe<TraitImplId>;
fn impl_impl_def_impl(&self, key0: ImplImplDefId) -> Maybe<ImplId>;
fn priv_impl_impl_semantic_data(
&self,
key0: ImplImplDefId,
) -> Maybe<ImplItemImplData>;
fn priv_impl_impl_def_generic_params_data(
&self,
key0: ImplImplDefId,
) -> Maybe<GenericParamsData>;
fn implicit_impl_impl_semantic_diagnostics(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Diagnostics<SemanticDiagnostic>;
fn implicit_impl_impl_impl(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Maybe<ImplId>;
fn priv_implicit_impl_impl_semantic_data(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Maybe<ImplicitImplImplData>;
fn impl_impl_implized_by_context(
&self,
key0: ImplImplId,
key1: ImplDefId,
) -> Maybe<ImplId>;
fn impl_impl_concrete_implized(&self, key0: ImplImplId) -> Maybe<ImplId>;
fn impl_impl_concrete_trait(
&self,
key0: ImplImplId,
) -> Maybe<ConcreteTraitId>;
fn impl_function_declaration_diagnostics(
&self,
key0: ImplFunctionId,
) -> Diagnostics<SemanticDiagnostic>;
fn impl_function_signature(&self, key0: ImplFunctionId) -> Maybe<Signature>;
fn impl_function_generic_params(
&self,
key0: ImplFunctionId,
) -> Maybe<Vec<GenericParam>>;
fn priv_impl_function_generic_params_data(
&self,
key0: ImplFunctionId,
) -> Maybe<GenericParamsData>;
fn impl_function_attributes(
&self,
key0: ImplFunctionId,
) -> Maybe<Vec<Attribute>>;
fn impl_function_resolver_data(
&self,
key0: ImplFunctionId,
) -> Maybe<Arc<ResolverData>>;
fn impl_function_declaration_inline_config(
&self,
key0: ImplFunctionId,
) -> Maybe<InlineConfiguration>;
fn impl_function_declaration_implicit_precedence(
&self,
key0: ImplFunctionId,
) -> Maybe<ImplicitPrecedence>;
fn impl_function_declaration_implicits(
&self,
key0: ImplFunctionId,
) -> Maybe<Vec<TypeId>>;
fn impl_function_trait_function(
&self,
key0: ImplFunctionId,
) -> Maybe<TraitFunctionId>;
fn priv_impl_function_declaration_data(
&self,
key0: ImplFunctionId,
) -> Maybe<ImplFunctionDeclarationData>;
fn impl_function_body_diagnostics(
&self,
key0: ImplFunctionId,
) -> Diagnostics<SemanticDiagnostic>;
fn impl_function_body(
&self,
key0: ImplFunctionId,
) -> Maybe<Arc<FunctionBody>>;
fn impl_function_body_resolver_data(
&self,
key0: ImplFunctionId,
) -> Maybe<Arc<ResolverData>>;
fn priv_impl_function_body_data(
&self,
key0: ImplFunctionId,
) -> Maybe<FunctionBodyData>;
fn trait_type_implized_by_context(
&self,
key0: TraitTypeId,
key1: ImplDefId,
) -> Maybe<TypeId>;
fn free_function_declaration_diagnostics(
&self,
key0: FreeFunctionId,
) -> Diagnostics<SemanticDiagnostic>;
fn free_function_signature(&self, key0: FreeFunctionId) -> Maybe<Signature>;
fn free_function_declaration_implicits(
&self,
key0: FreeFunctionId,
) -> Maybe<Vec<TypeId>>;
fn free_function_declaration_implicit_precedence(
&self,
key0: FreeFunctionId,
) -> Maybe<ImplicitPrecedence>;
fn free_function_generic_params(
&self,
key0: FreeFunctionId,
) -> Maybe<Vec<GenericParam>>;
fn free_function_generic_params_data(
&self,
key0: FreeFunctionId,
) -> Maybe<GenericParamsData>;
fn free_function_declaration_resolver_data(
&self,
key0: FreeFunctionId,
) -> Maybe<Arc<ResolverData>>;
fn free_function_declaration_inline_config(
&self,
key0: FreeFunctionId,
) -> Maybe<InlineConfiguration>;
fn priv_free_function_declaration_data(
&self,
key0: FreeFunctionId,
) -> Maybe<FunctionDeclarationData>;
fn free_function_body_diagnostics(
&self,
key0: FreeFunctionId,
) -> Diagnostics<SemanticDiagnostic>;
fn free_function_body_resolver_data(
&self,
key0: FreeFunctionId,
) -> Maybe<Arc<ResolverData>>;
fn priv_free_function_body_data(
&self,
key0: FreeFunctionId,
) -> Maybe<FunctionBodyData>;
fn function_declaration_diagnostics(
&self,
key0: FunctionWithBodyId,
) -> Diagnostics<SemanticDiagnostic>;
fn function_declaration_inline_config(
&self,
key0: FunctionWithBodyId,
) -> Maybe<InlineConfiguration>;
fn function_declaration_implicit_precedence(
&self,
key0: FunctionWithBodyId,
) -> Maybe<ImplicitPrecedence>;
fn function_with_body_signature(
&self,
key0: FunctionWithBodyId,
) -> Maybe<Signature>;
fn function_with_body_generic_params(
&self,
key0: FunctionWithBodyId,
) -> Maybe<Vec<GenericParam>>;
fn function_with_body_attributes(
&self,
key0: FunctionWithBodyId,
) -> Maybe<Vec<Attribute>>;
fn function_body_diagnostics(
&self,
key0: FunctionWithBodyId,
) -> Diagnostics<SemanticDiagnostic>;
fn function_body_expr(&self, key0: FunctionWithBodyId) -> Maybe<ExprId>;
fn function_body(
&self,
key0: FunctionWithBodyId,
) -> Maybe<Arc<FunctionBody>>;
fn priv_extern_function_declaration_data(
&self,
key0: ExternFunctionId,
) -> Maybe<FunctionDeclarationData>;
fn extern_function_declaration_inline_config(
&self,
key0: ExternFunctionId,
) -> Maybe<InlineConfiguration>;
fn extern_function_declaration_diagnostics(
&self,
key0: ExternFunctionId,
) -> Diagnostics<SemanticDiagnostic>;
fn extern_function_signature(
&self,
key0: ExternFunctionId,
) -> Maybe<Signature>;
fn extern_function_declaration_generic_params(
&self,
key0: ExternFunctionId,
) -> Maybe<Vec<GenericParam>>;
fn extern_function_declaration_generic_params_data(
&self,
key0: ExternFunctionId,
) -> Maybe<GenericParamsData>;
fn extern_function_declaration_implicits(
&self,
key0: ExternFunctionId,
) -> Maybe<Vec<TypeId>>;
fn extern_function_declaration_refs(
&self,
key0: ExternFunctionId,
) -> Maybe<Vec<Parameter>>;
fn extern_function_declaration_resolver_data(
&self,
key0: ExternFunctionId,
) -> Maybe<Arc<ResolverData>>;
fn priv_extern_type_declaration_data(
&self,
key0: ExternTypeId,
) -> Maybe<ExternTypeDeclarationData>;
fn extern_type_declaration_diagnostics(
&self,
key0: ExternTypeId,
) -> Diagnostics<SemanticDiagnostic>;
fn extern_type_declaration_generic_params(
&self,
key0: ExternTypeId,
) -> Maybe<Vec<GenericParam>>;
fn extern_type_declaration_generic_params_data(
&self,
key0: ExternTypeId,
) -> Maybe<GenericParamsData>;
fn extern_type_attributes(
&self,
key0: ExternTypeId,
) -> Maybe<Vec<Attribute>>;
fn function_title_signature(
&self,
key0: FunctionTitleId,
) -> Maybe<Signature>;
fn function_title_generic_params(
&self,
key0: FunctionTitleId,
) -> Maybe<Vec<GenericParam>>;
fn concrete_function_signature(&self, key0: FunctionId) -> Maybe<Signature>;
fn generic_type_generic_params(
&self,
key0: GenericTypeId,
) -> Maybe<Vec<GenericParam>>;
fn generic_param_semantic(
&self,
key0: GenericParamId,
) -> Maybe<GenericParam>;
fn generic_param_diagnostics(
&self,
key0: GenericParamId,
) -> Diagnostics<SemanticDiagnostic>;
fn generic_param_resolver_data(
&self,
key0: GenericParamId,
) -> Maybe<Arc<ResolverData>>;
fn generic_impl_param_trait(&self, key0: GenericParamId) -> Maybe<TraitId>;
fn priv_generic_param_data(
&self,
key0: GenericParamId,
) -> Maybe<GenericParamData>;
fn single_value_type(&self, key0: TypeId) -> Maybe<bool>;
fn type_size_info(&self, key0: TypeId) -> Maybe<TypeSizeInformation>;
fn type_info(
&self,
key0: ImplLookupContext,
key1: TypeId,
) -> Maybe<TypeInfo>;
fn priv_type_is_fully_concrete(&self, key0: TypeId) -> bool;
fn priv_type_is_var_free(&self, key0: TypeId) -> bool;
fn expr_semantic(&self, key0: FunctionWithBodyId, key1: ExprId) -> Expr;
fn pattern_semantic(
&self,
key0: FunctionWithBodyId,
key1: PatternId,
) -> Pattern;
fn statement_semantic(
&self,
key0: FunctionWithBodyId,
key1: StatementId,
) -> Statement;
fn lookup_resolved_generic_item_by_ptr(
&self,
key0: LookupItemId,
key1: TerminalIdentifierPtr,
) -> Option<ResolvedGenericItem>;
fn lookup_resolved_concrete_item_by_ptr(
&self,
key0: LookupItemId,
key1: TerminalIdentifierPtr,
) -> Option<ResolvedConcreteItem>;
fn module_semantic_diagnostics(
&self,
key0: ModuleId,
) -> Maybe<Diagnostics<SemanticDiagnostic>>;
fn file_semantic_diagnostics(
&self,
key0: FileId,
) -> Maybe<Diagnostics<SemanticDiagnostic>>;
fn core_crate(&self) -> CrateId;
fn core_module(&self) -> ModuleId;
fn core_felt252_ty(&self) -> TypeId;
fn analyzer_plugins(&self) -> Vec<Arc<dyn AnalyzerPlugin>>;
fn set_analyzer_plugins(&mut self, value__: Vec<Arc<dyn AnalyzerPlugin>>);
fn set_analyzer_plugins_with_durability(
&mut self,
value__: Vec<Arc<dyn AnalyzerPlugin>>,
durability__: Durability,
);
fn methods_in_module(
&self,
key0: ModuleId,
key1: TypeFilter,
) -> Arc<[TraitFunctionId]>;
fn methods_in_crate(
&self,
key0: CrateId,
key1: TypeFilter,
) -> Arc<[TraitFunctionId]>;
}
Required Methods§
fn intern_function(&self, key0: FunctionLongId) -> FunctionId
fn lookup_intern_function(&self, key0: FunctionId) -> FunctionLongId
fn intern_concrete_function_with_body( &self, key0: ConcreteFunctionWithBody, ) -> ConcreteFunctionWithBodyId
fn lookup_intern_concrete_function_with_body( &self, key0: ConcreteFunctionWithBodyId, ) -> ConcreteFunctionWithBody
fn intern_concrete_struct(&self, key0: ConcreteStructLongId) -> ConcreteStructId
fn lookup_intern_concrete_struct( &self, key0: ConcreteStructId, ) -> ConcreteStructLongId
fn intern_concrete_enum(&self, key0: ConcreteEnumLongId) -> ConcreteEnumId
fn lookup_intern_concrete_enum( &self, key0: ConcreteEnumId, ) -> ConcreteEnumLongId
fn intern_concrete_extern_type( &self, key0: ConcreteExternTypeLongId, ) -> ConcreteExternTypeId
fn lookup_intern_concrete_extern_type( &self, key0: ConcreteExternTypeId, ) -> ConcreteExternTypeLongId
fn intern_concrete_trait(&self, key0: ConcreteTraitLongId) -> ConcreteTraitId
fn lookup_intern_concrete_trait( &self, key0: ConcreteTraitId, ) -> ConcreteTraitLongId
fn intern_concrete_trait_function( &self, key0: ConcreteTraitGenericFunctionLongId, ) -> ConcreteTraitGenericFunctionId
fn lookup_intern_concrete_trait_function( &self, key0: ConcreteTraitGenericFunctionId, ) -> ConcreteTraitGenericFunctionLongId
fn intern_concrete_trait_type( &self, key0: ConcreteTraitTypeLongId, ) -> ConcreteTraitTypeId
fn lookup_intern_concrete_trait_type( &self, key0: ConcreteTraitTypeId, ) -> ConcreteTraitTypeLongId
fn intern_concrete_trait_constant( &self, key0: ConcreteTraitConstantLongId, ) -> ConcreteTraitConstantId
fn lookup_intern_concrete_trait_constant( &self, key0: ConcreteTraitConstantId, ) -> ConcreteTraitConstantLongId
fn intern_concrete_impl(&self, key0: ConcreteImplLongId) -> ConcreteImplId
fn lookup_intern_concrete_impl( &self, key0: ConcreteImplId, ) -> ConcreteImplLongId
fn intern_concrete_trait_impl( &self, key0: ConcreteTraitImplLongId, ) -> ConcreteTraitImplId
fn lookup_intern_concrete_trait_impl( &self, key0: ConcreteTraitImplId, ) -> ConcreteTraitImplLongId
fn intern_type(&self, key0: TypeLongId) -> TypeId
fn lookup_intern_type(&self, key0: TypeId) -> TypeLongId
fn intern_const_value(&self, key0: ConstValue) -> ConstValueId
fn lookup_intern_const_value(&self, key0: ConstValueId) -> ConstValue
fn intern_impl(&self, key0: ImplLongId) -> ImplId
fn lookup_intern_impl(&self, key0: ImplId) -> ImplLongId
fn intern_impl_var(&self, key0: ImplVar) -> ImplVarId
fn lookup_intern_impl_var(&self, key0: ImplVarId) -> ImplVar
sourcefn priv_constant_semantic_data(&self, key0: ConstantId) -> Maybe<ConstantData>
fn priv_constant_semantic_data(&self, key0: ConstantId) -> Maybe<ConstantData>
Private query to compute data about a constant definition.
sourcefn constant_semantic_diagnostics(
&self,
key0: ConstantId,
) -> Diagnostics<SemanticDiagnostic>
fn constant_semantic_diagnostics( &self, key0: ConstantId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a constant definition.
sourcefn constant_semantic_data(&self, key0: ConstantId) -> Maybe<Constant>
fn constant_semantic_data(&self, key0: ConstantId) -> Maybe<Constant>
Returns the semantic data of a constant definition.
fn constant_resolver_data(&self, key0: ConstantId) -> Maybe<Arc<ResolverData>>
fn constant_const_value(&self, key0: ConstantId) -> Maybe<ConstValue>
fn constant_const_type(&self, key0: ConstantId) -> Maybe<TypeId>
sourcefn priv_use_semantic_data(&self, key0: UseId) -> Maybe<UseData>
fn priv_use_semantic_data(&self, key0: UseId) -> Maybe<UseData>
Private query to compute data about a use.
sourcefn use_semantic_diagnostics(
&self,
key0: UseId,
) -> Diagnostics<SemanticDiagnostic>
fn use_semantic_diagnostics( &self, key0: UseId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a use.
fn use_resolver_data(&self, key0: UseId) -> Maybe<Arc<ResolverData>>
sourcefn priv_module_semantic_data(
&self,
key0: ModuleId,
) -> Maybe<Arc<ModuleSemanticData>>
fn priv_module_semantic_data( &self, key0: ModuleId, ) -> Maybe<Arc<ModuleSemanticData>>
Private query to compute data about the module.
sourcefn module_item_by_name(
&self,
key0: ModuleId,
key1: SmolStr,
) -> Maybe<Option<ModuleItemId>>
fn module_item_by_name( &self, key0: ModuleId, key1: SmolStr, ) -> Maybe<Option<ModuleItemId>>
Returns Maybe::Err if the module was not properly resolved. Returns [Maybe::Ok(Option::None)] if the item does not exist.
sourcefn module_item_info_by_name(
&self,
key0: ModuleId,
key1: SmolStr,
) -> Maybe<Option<ModuleItemInfo>>
fn module_item_info_by_name( &self, key0: ModuleId, key1: SmolStr, ) -> Maybe<Option<ModuleItemInfo>>
Returns Maybe::Err if the module was not properly resolved. Returns [Maybe::Ok(Option::None)] if the item does not exist.
sourcefn module_attributes(&self, key0: ModuleId) -> Maybe<Vec<Attribute>>
fn module_attributes(&self, key0: ModuleId) -> Maybe<Vec<Attribute>>
Returns the attributes of a module.
sourcefn module_usable_trait_ids(
&self,
key0: ModuleId,
) -> Maybe<Arc<OrderedHashSet<TraitId>>>
fn module_usable_trait_ids( &self, key0: ModuleId, ) -> Maybe<Arc<OrderedHashSet<TraitId>>>
Finds all the trait ids usable in the module.
sourcefn priv_struct_declaration_data(
&self,
key0: StructId,
) -> Maybe<StructDeclarationData>
fn priv_struct_declaration_data( &self, key0: StructId, ) -> Maybe<StructDeclarationData>
Private query to compute data about a struct declaration.
sourcefn struct_declaration_diagnostics(
&self,
key0: StructId,
) -> Diagnostics<SemanticDiagnostic>
fn struct_declaration_diagnostics( &self, key0: StructId, ) -> Diagnostics<SemanticDiagnostic>
Returns the declaration diagnostics of a struct.
sourcefn struct_attributes(&self, key0: StructId) -> Maybe<Vec<Attribute>>
fn struct_attributes(&self, key0: StructId) -> Maybe<Vec<Attribute>>
Returns the attributes of a struct.
sourcefn struct_generic_params(&self, key0: StructId) -> Maybe<Vec<GenericParam>>
fn struct_generic_params(&self, key0: StructId) -> Maybe<Vec<GenericParam>>
Returns the generic parameters of an enum.
sourcefn struct_generic_params_data(&self, key0: StructId) -> Maybe<GenericParamsData>
fn struct_generic_params_data(&self, key0: StructId) -> Maybe<GenericParamsData>
Returns the generic parameters data of an enum.
sourcefn struct_declaration_resolver_data(
&self,
key0: StructId,
) -> Maybe<Arc<ResolverData>>
fn struct_declaration_resolver_data( &self, key0: StructId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a struct declaration.
sourcefn priv_struct_definition_data(
&self,
key0: StructId,
) -> Maybe<StructDefinitionData>
fn priv_struct_definition_data( &self, key0: StructId, ) -> Maybe<StructDefinitionData>
Private query to compute data about a struct definition.
sourcefn struct_definition_diagnostics(
&self,
key0: StructId,
) -> Diagnostics<SemanticDiagnostic>
fn struct_definition_diagnostics( &self, key0: StructId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a struct definition.
sourcefn struct_members(
&self,
key0: StructId,
) -> Maybe<OrderedHashMap<SmolStr, Member>>
fn struct_members( &self, key0: StructId, ) -> Maybe<OrderedHashMap<SmolStr, Member>>
Returns the members of a struct.
sourcefn struct_definition_resolver_data(
&self,
key0: StructId,
) -> Maybe<Arc<ResolverData>>
fn struct_definition_resolver_data( &self, key0: StructId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a struct definition.
sourcefn priv_enum_declaration_data(&self, key0: EnumId) -> Maybe<EnumDeclarationData>
fn priv_enum_declaration_data(&self, key0: EnumId) -> Maybe<EnumDeclarationData>
Private query to compute data about an enum declaration.
sourcefn enum_declaration_diagnostics(
&self,
key0: EnumId,
) -> Diagnostics<SemanticDiagnostic>
fn enum_declaration_diagnostics( &self, key0: EnumId, ) -> Diagnostics<SemanticDiagnostic>
Returns the diagnostics of an enum declaration.
sourcefn enum_generic_params(&self, key0: EnumId) -> Maybe<Vec<GenericParam>>
fn enum_generic_params(&self, key0: EnumId) -> Maybe<Vec<GenericParam>>
Returns the generic parameters of an enum.
sourcefn enum_generic_params_data(&self, key0: EnumId) -> Maybe<GenericParamsData>
fn enum_generic_params_data(&self, key0: EnumId) -> Maybe<GenericParamsData>
Returns the generic parameters data of an enum.
sourcefn enum_attributes(&self, key0: EnumId) -> Maybe<Vec<Attribute>>
fn enum_attributes(&self, key0: EnumId) -> Maybe<Vec<Attribute>>
Returns the attributes attached to an enum.
sourcefn enum_declaration_resolver_data(
&self,
key0: EnumId,
) -> Maybe<Arc<ResolverData>>
fn enum_declaration_resolver_data( &self, key0: EnumId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an enum declaration.
sourcefn priv_enum_definition_data(&self, key0: EnumId) -> Maybe<EnumDefinitionData>
fn priv_enum_definition_data(&self, key0: EnumId) -> Maybe<EnumDefinitionData>
Private query to compute data about an enum definition.
sourcefn enum_definition_diagnostics(
&self,
key0: EnumId,
) -> Diagnostics<SemanticDiagnostic>
fn enum_definition_diagnostics( &self, key0: EnumId, ) -> Diagnostics<SemanticDiagnostic>
Returns the definition diagnostics of an enum definition.
sourcefn enum_variants(
&self,
key0: EnumId,
) -> Maybe<OrderedHashMap<SmolStr, VariantId>>
fn enum_variants( &self, key0: EnumId, ) -> Maybe<OrderedHashMap<SmolStr, VariantId>>
Returns the members of an enum.
sourcefn variant_semantic(&self, key0: EnumId, key1: VariantId) -> Maybe<Variant>
fn variant_semantic(&self, key0: EnumId, key1: VariantId) -> Maybe<Variant>
Returns the semantic model of a variant.
sourcefn enum_definition_resolver_data(
&self,
key0: EnumId,
) -> Maybe<Arc<ResolverData>>
fn enum_definition_resolver_data( &self, key0: EnumId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an enum definition.
sourcefn module_type_alias_semantic_diagnostics(
&self,
key0: ModuleTypeAliasId,
) -> Diagnostics<SemanticDiagnostic>
fn module_type_alias_semantic_diagnostics( &self, key0: ModuleTypeAliasId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a type alias.
sourcefn module_type_alias_resolved_type(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<TypeId>
fn module_type_alias_resolved_type( &self, key0: ModuleTypeAliasId, ) -> Maybe<TypeId>
Returns the resolved type of a type alias.
sourcefn module_type_alias_generic_params(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<Vec<GenericParam>>
fn module_type_alias_generic_params( &self, key0: ModuleTypeAliasId, ) -> Maybe<Vec<GenericParam>>
Returns the generic parameters of a type alias.
sourcefn module_type_alias_resolver_data(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<Arc<ResolverData>>
fn module_type_alias_resolver_data( &self, key0: ModuleTypeAliasId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a type alias.
sourcefn priv_module_type_alias_generic_params_data(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<GenericParamsData>
fn priv_module_type_alias_generic_params_data( &self, key0: ModuleTypeAliasId, ) -> Maybe<GenericParamsData>
Private query to compute the generic parameters data of a type alias.
sourcefn priv_module_type_alias_semantic_data(
&self,
key0: ModuleTypeAliasId,
) -> Maybe<ModuleTypeAliasData>
fn priv_module_type_alias_semantic_data( &self, key0: ModuleTypeAliasId, ) -> Maybe<ModuleTypeAliasData>
Private query to compute data about a type alias.
sourcefn impl_alias_impl_def(&self, key0: ImplAliasId) -> Maybe<ImplDefId>
fn impl_alias_impl_def(&self, key0: ImplAliasId) -> Maybe<ImplDefId>
Returns the impl definition pointed to by the impl alias, or an error if it points to something else.
sourcefn priv_impl_alias_semantic_data(
&self,
key0: ImplAliasId,
) -> Maybe<ImplAliasData>
fn priv_impl_alias_semantic_data( &self, key0: ImplAliasId, ) -> Maybe<ImplAliasData>
Private query to compute data about a type alias.
sourcefn impl_alias_semantic_diagnostics(
&self,
key0: ImplAliasId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_alias_semantic_diagnostics( &self, key0: ImplAliasId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a type alias.
sourcefn impl_alias_resolved_impl(&self, key0: ImplAliasId) -> Maybe<ImplId>
fn impl_alias_resolved_impl(&self, key0: ImplAliasId) -> Maybe<ImplId>
Returns the resolved type of a type alias.
sourcefn impl_alias_generic_params(
&self,
key0: ImplAliasId,
) -> Maybe<Vec<GenericParam>>
fn impl_alias_generic_params( &self, key0: ImplAliasId, ) -> Maybe<Vec<GenericParam>>
Returns the generic parameters of a type alias.
sourcefn impl_alias_generic_params_data(
&self,
key0: ImplAliasId,
) -> Maybe<GenericParamsData>
fn impl_alias_generic_params_data( &self, key0: ImplAliasId, ) -> Maybe<GenericParamsData>
Returns the generic parameters data of a type alias.
sourcefn impl_alias_resolver_data(
&self,
key0: ImplAliasId,
) -> Maybe<Arc<ResolverData>>
fn impl_alias_resolver_data( &self, key0: ImplAliasId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a type alias.
sourcefn impl_alias_attributes(&self, key0: ImplAliasId) -> Maybe<Vec<Attribute>>
fn impl_alias_attributes(&self, key0: ImplAliasId) -> Maybe<Vec<Attribute>>
Returns the attributes attached to the impl alias.
sourcefn trait_semantic_declaration_diagnostics(
&self,
key0: TraitId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_semantic_declaration_diagnostics( &self, key0: TraitId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic declaration diagnostics of a trait.
sourcefn trait_generic_params(&self, key0: TraitId) -> Maybe<Vec<GenericParam>>
fn trait_generic_params(&self, key0: TraitId) -> Maybe<Vec<GenericParam>>
Returns the generic parameters of a trait.
sourcefn trait_generic_params_data(&self, key0: TraitId) -> Maybe<GenericParamsData>
fn trait_generic_params_data(&self, key0: TraitId) -> Maybe<GenericParamsData>
Returns the generic parameters data of a trait.
sourcefn trait_attributes(&self, key0: TraitId) -> Maybe<Vec<Attribute>>
fn trait_attributes(&self, key0: TraitId) -> Maybe<Vec<Attribute>>
Returns the attributes of a trait.
sourcefn trait_resolver_data(&self, key0: TraitId) -> Maybe<Arc<ResolverData>>
fn trait_resolver_data(&self, key0: TraitId) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a trait.
sourcefn priv_trait_declaration_data(
&self,
key0: TraitId,
) -> Maybe<TraitDeclarationData>
fn priv_trait_declaration_data( &self, key0: TraitId, ) -> Maybe<TraitDeclarationData>
Private query to compute declaration data about a trait.
sourcefn trait_semantic_definition_diagnostics(
&self,
key0: TraitId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_semantic_definition_diagnostics( &self, key0: TraitId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic definition diagnostics of a trait.
sourcefn trait_required_item_names(
&self,
key0: TraitId,
) -> Maybe<OrderedHashSet<SmolStr>>
fn trait_required_item_names( &self, key0: TraitId, ) -> Maybe<OrderedHashSet<SmolStr>>
Returns the names of all the non default implemented items of a trait.
sourcefn trait_item_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitItemId>>
fn trait_item_by_name( &self, key0: TraitId, key1: SmolStr, ) -> Maybe<Option<TraitItemId>>
Returns the item of the trait, by the given name
, if exists.
sourcefn trait_functions(
&self,
key0: TraitId,
) -> Maybe<OrderedHashMap<SmolStr, TraitFunctionId>>
fn trait_functions( &self, key0: TraitId, ) -> Maybe<OrderedHashMap<SmolStr, TraitFunctionId>>
Returns the functions of a trait.
sourcefn trait_function_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitFunctionId>>
fn trait_function_by_name( &self, key0: TraitId, key1: SmolStr, ) -> Maybe<Option<TraitFunctionId>>
Returns the function with the given name of the given trait, if exists.
sourcefn trait_types(
&self,
key0: TraitId,
) -> Maybe<OrderedHashMap<SmolStr, TraitTypeId>>
fn trait_types( &self, key0: TraitId, ) -> Maybe<OrderedHashMap<SmolStr, TraitTypeId>>
Returns the types of a trait.
sourcefn trait_type_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitTypeId>>
fn trait_type_by_name( &self, key0: TraitId, key1: SmolStr, ) -> Maybe<Option<TraitTypeId>>
Returns the item type with the given name of the given trait, if exists.
sourcefn trait_constants(
&self,
key0: TraitId,
) -> Maybe<OrderedHashMap<SmolStr, TraitConstantId>>
fn trait_constants( &self, key0: TraitId, ) -> Maybe<OrderedHashMap<SmolStr, TraitConstantId>>
Returns the constants of a trait.
sourcefn trait_constant_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitConstantId>>
fn trait_constant_by_name( &self, key0: TraitId, key1: SmolStr, ) -> Maybe<Option<TraitConstantId>>
Returns the item constants with the given name of the given trait, if exists.
sourcefn trait_impls(
&self,
key0: TraitId,
) -> Maybe<OrderedHashMap<SmolStr, TraitImplId>>
fn trait_impls( &self, key0: TraitId, ) -> Maybe<OrderedHashMap<SmolStr, TraitImplId>>
Returns the constants of a trait.
sourcefn trait_impl_by_name(
&self,
key0: TraitId,
key1: SmolStr,
) -> Maybe<Option<TraitImplId>>
fn trait_impl_by_name( &self, key0: TraitId, key1: SmolStr, ) -> Maybe<Option<TraitImplId>>
Returns the item impls with the given name of the given trait, if exists.
sourcefn priv_trait_definition_data(
&self,
key0: TraitId,
) -> Maybe<TraitDefinitionData>
fn priv_trait_definition_data( &self, key0: TraitId, ) -> Maybe<TraitDefinitionData>
Private query to compute definition data about a trait.
sourcefn trait_type_diagnostics(
&self,
key0: TraitTypeId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_type_diagnostics( &self, key0: TraitTypeId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a trait type.
sourcefn trait_type_generic_params(
&self,
key0: TraitTypeId,
) -> Maybe<Vec<GenericParam>>
fn trait_type_generic_params( &self, key0: TraitTypeId, ) -> Maybe<Vec<GenericParam>>
Returns the generic params of a trait type.
sourcefn trait_type_attributes(&self, key0: TraitTypeId) -> Maybe<Vec<Attribute>>
fn trait_type_attributes(&self, key0: TraitTypeId) -> Maybe<Vec<Attribute>>
Returns the attributes of a trait type.
sourcefn trait_type_resolver_data(
&self,
key0: TraitTypeId,
) -> Maybe<Arc<ResolverData>>
fn trait_type_resolver_data( &self, key0: TraitTypeId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a trait type.
sourcefn priv_trait_type_generic_params_data(
&self,
key0: TraitTypeId,
) -> Maybe<GenericParamsData>
fn priv_trait_type_generic_params_data( &self, key0: TraitTypeId, ) -> Maybe<GenericParamsData>
Private query to compute the generic params data of a trait type.
sourcefn priv_trait_type_data(&self, key0: TraitTypeId) -> Maybe<TraitItemTypeData>
fn priv_trait_type_data(&self, key0: TraitTypeId) -> Maybe<TraitItemTypeData>
Private query to compute data about a trait type.
sourcefn trait_constant_diagnostics(
&self,
key0: TraitConstantId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_constant_diagnostics( &self, key0: TraitConstantId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a trait type.
sourcefn trait_constant_attributes(
&self,
key0: TraitConstantId,
) -> Maybe<Vec<Attribute>>
fn trait_constant_attributes( &self, key0: TraitConstantId, ) -> Maybe<Vec<Attribute>>
Returns the attributes of a trait constants.
sourcefn trait_constant_type(&self, key0: TraitConstantId) -> Maybe<TypeId>
fn trait_constant_type(&self, key0: TraitConstantId) -> Maybe<TypeId>
Returns the type of a trait constant.
sourcefn trait_constant_resolver_data(
&self,
key0: TraitConstantId,
) -> Maybe<Arc<ResolverData>>
fn trait_constant_resolver_data( &self, key0: TraitConstantId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a trait constants.
sourcefn priv_trait_constant_data(
&self,
key0: TraitConstantId,
) -> Maybe<TraitItemConstantData>
fn priv_trait_constant_data( &self, key0: TraitConstantId, ) -> Maybe<TraitItemConstantData>
Private query to compute data about a trait constant.
sourcefn concrete_trait_constant_type(
&self,
key0: ConcreteTraitConstantId,
) -> Maybe<TypeId>
fn concrete_trait_constant_type( &self, key0: ConcreteTraitConstantId, ) -> Maybe<TypeId>
Returns the type of a trait constant.
sourcefn trait_impl_diagnostics(
&self,
key0: TraitImplId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_impl_diagnostics( &self, key0: TraitImplId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a trait impls.
sourcefn trait_impl_attributes(&self, key0: TraitImplId) -> Maybe<Vec<Attribute>>
fn trait_impl_attributes(&self, key0: TraitImplId) -> Maybe<Vec<Attribute>>
Returns the attributes of a trait impls.
sourcefn trait_impl_concrete_trait(&self, key0: TraitImplId) -> Maybe<ConcreteTraitId>
fn trait_impl_concrete_trait(&self, key0: TraitImplId) -> Maybe<ConcreteTraitId>
Returns the concrete trait of a trait impl.
sourcefn trait_impl_resolver_data(
&self,
key0: TraitImplId,
) -> Maybe<Arc<ResolverData>>
fn trait_impl_resolver_data( &self, key0: TraitImplId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a trait impls.
sourcefn priv_trait_impl_data(&self, key0: TraitImplId) -> Maybe<TraitItemImplData>
fn priv_trait_impl_data(&self, key0: TraitImplId) -> Maybe<TraitItemImplData>
Private query to compute data about a trait impl.
sourcefn concrete_trait_impl_concrete_trait(
&self,
key0: ConcreteTraitImplId,
) -> Maybe<ConcreteTraitId>
fn concrete_trait_impl_concrete_trait( &self, key0: ConcreteTraitImplId, ) -> Maybe<ConcreteTraitId>
Returns the concrete trait of a concrete trait impl.
sourcefn trait_function_declaration_diagnostics(
&self,
key0: TraitFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_function_declaration_diagnostics( &self, key0: TraitFunctionId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a trait function.
sourcefn trait_function_signature(&self, key0: TraitFunctionId) -> Maybe<Signature>
fn trait_function_signature(&self, key0: TraitFunctionId) -> Maybe<Signature>
Returns the signature of a trait function.
sourcefn trait_function_generic_params(
&self,
key0: TraitFunctionId,
) -> Maybe<Vec<GenericParam>>
fn trait_function_generic_params( &self, key0: TraitFunctionId, ) -> Maybe<Vec<GenericParam>>
Returns the generic params of a trait function.
sourcefn priv_trait_function_generic_params_data(
&self,
key0: TraitFunctionId,
) -> Maybe<GenericParamsData>
fn priv_trait_function_generic_params_data( &self, key0: TraitFunctionId, ) -> Maybe<GenericParamsData>
Returns the generic params data of a trait function.
sourcefn trait_function_attributes(
&self,
key0: TraitFunctionId,
) -> Maybe<Vec<Attribute>>
fn trait_function_attributes( &self, key0: TraitFunctionId, ) -> Maybe<Vec<Attribute>>
Returns the attributes of a trait function.
sourcefn trait_function_resolver_data(
&self,
key0: TraitFunctionId,
) -> Maybe<Arc<ResolverData>>
fn trait_function_resolver_data( &self, key0: TraitFunctionId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a trait function.
sourcefn trait_function_declaration_inline_config(
&self,
key0: TraitFunctionId,
) -> Maybe<InlineConfiguration>
fn trait_function_declaration_inline_config( &self, key0: TraitFunctionId, ) -> Maybe<InlineConfiguration>
Returns the inline configuration of a trait function’s declaration.
sourcefn trait_function_declaration_implicit_precedence(
&self,
key0: TraitFunctionId,
) -> Maybe<ImplicitPrecedence>
fn trait_function_declaration_implicit_precedence( &self, key0: TraitFunctionId, ) -> Maybe<ImplicitPrecedence>
Returns the implicits precedence of a trait function.
sourcefn trait_function_declaration_implicits(
&self,
key0: TraitFunctionId,
) -> Maybe<Vec<TypeId>>
fn trait_function_declaration_implicits( &self, key0: TraitFunctionId, ) -> Maybe<Vec<TypeId>>
Returns the explicit implicits of a signature of a trait function.
sourcefn priv_trait_function_declaration_data(
&self,
key0: TraitFunctionId,
) -> Maybe<FunctionDeclarationData>
fn priv_trait_function_declaration_data( &self, key0: TraitFunctionId, ) -> Maybe<FunctionDeclarationData>
Private query to compute data about a trait function declaration.
sourcefn trait_function_body_diagnostics(
&self,
key0: TraitFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_function_body_diagnostics( &self, key0: TraitFunctionId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a trait function definition (declaration + body).
sourcefn trait_function_body(
&self,
key0: TraitFunctionId,
) -> Maybe<Option<Arc<FunctionBody>>>
fn trait_function_body( &self, key0: TraitFunctionId, ) -> Maybe<Option<Arc<FunctionBody>>>
Returns the body of a trait function, if any.
sourcefn priv_trait_function_body_data(
&self,
key0: TraitFunctionId,
) -> Maybe<Option<FunctionBodyData>>
fn priv_trait_function_body_data( &self, key0: TraitFunctionId, ) -> Maybe<Option<FunctionBodyData>>
Private query to compute data about a trait function definition (declaration + body)
sourcefn concrete_trait_function_generic_params(
&self,
key0: ConcreteTraitGenericFunctionId,
) -> Maybe<Vec<GenericParam>>
fn concrete_trait_function_generic_params( &self, key0: ConcreteTraitGenericFunctionId, ) -> Maybe<Vec<GenericParam>>
Returns the generic params of a concrete trait function.
sourcefn concrete_trait_function_signature(
&self,
key0: ConcreteTraitGenericFunctionId,
) -> Maybe<Signature>
fn concrete_trait_function_signature( &self, key0: ConcreteTraitGenericFunctionId, ) -> Maybe<Signature>
Returns the signature of a concrete trait function.
sourcefn module_impl_ids_for_trait_filter(
&self,
key0: ModuleId,
key1: TraitFilter,
) -> Maybe<Vec<UninferredImpl>>
fn module_impl_ids_for_trait_filter( &self, key0: ModuleId, key1: TraitFilter, ) -> Maybe<Vec<UninferredImpl>>
Returns candidate ImplDefIds for a specific trait lookup constraint.
fn impl_impl_ids_for_trait_filter( &self, key0: ImplId, key1: TraitFilter, ) -> Maybe<Vec<UninferredImpl>>
fn canonic_trait_solutions( &self, key0: CanonicalTrait, key1: ImplLookupContext, ) -> Result<SolutionSet<CanonicalImpl>, InferenceError>
sourcefn impl_semantic_declaration_diagnostics(
&self,
key0: ImplDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_semantic_declaration_diagnostics( &self, key0: ImplDefId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic declaration diagnostics of an impl.
sourcefn impl_def_generic_params_data(
&self,
key0: ImplDefId,
) -> Maybe<GenericParamsData>
fn impl_def_generic_params_data( &self, key0: ImplDefId, ) -> Maybe<GenericParamsData>
Returns the generic parameters data of an impl.
sourcefn impl_def_generic_params(&self, key0: ImplDefId) -> Maybe<Vec<GenericParam>>
fn impl_def_generic_params(&self, key0: ImplDefId) -> Maybe<Vec<GenericParam>>
Returns the generic parameters of an impl.
sourcefn impl_def_resolver_data(&self, key0: ImplDefId) -> Maybe<Arc<ResolverData>>
fn impl_def_resolver_data(&self, key0: ImplDefId) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an impl.
sourcefn impl_def_concrete_trait(&self, key0: ImplDefId) -> Maybe<ConcreteTraitId>
fn impl_def_concrete_trait(&self, key0: ImplDefId) -> Maybe<ConcreteTraitId>
Returns the concrete trait that is implemented by the impl.
sourcefn impl_def_substitution(
&self,
key0: ImplDefId,
) -> Maybe<Arc<GenericSubstitution>>
fn impl_def_substitution( &self, key0: ImplDefId, ) -> Maybe<Arc<GenericSubstitution>>
Returns the substitution for generics for the impl.
sourcefn impl_def_attributes(&self, key0: ImplDefId) -> Maybe<Vec<Attribute>>
fn impl_def_attributes(&self, key0: ImplDefId) -> Maybe<Vec<Attribute>>
Returns the attributes attached to the impl.
sourcefn impl_concrete_trait(&self, key0: ImplId) -> Maybe<ConcreteTraitId>
fn impl_concrete_trait(&self, key0: ImplId) -> Maybe<ConcreteTraitId>
Returns the concrete trait that is implemented by the concrete impl.
sourcefn impl_def_trait(&self, key0: ImplDefId) -> Maybe<TraitId>
fn impl_def_trait(&self, key0: ImplDefId) -> Maybe<TraitId>
Returns the trait that is implemented by the impl, or an error if the RHS of the of
is not
a trait.
sourcefn priv_impl_declaration_data(
&self,
key0: ImplDefId,
) -> Maybe<ImplDeclarationData>
fn priv_impl_declaration_data( &self, key0: ImplDefId, ) -> Maybe<ImplDeclarationData>
Private query to compute declaration data about an impl.
sourcefn impl_semantic_definition_diagnostics(
&self,
key0: ImplDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_semantic_definition_diagnostics( &self, key0: ImplDefId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic definition diagnostics of an impl.
sourcefn impl_item_by_name(
&self,
key0: ImplDefId,
key1: SmolStr,
) -> Maybe<Option<ImplItemId>>
fn impl_item_by_name( &self, key0: ImplDefId, key1: SmolStr, ) -> Maybe<Option<ImplItemId>>
Returns the item of the impl, by the given name
, if exists.
sourcefn impl_implicit_impl_by_name(
&self,
key0: ImplDefId,
key1: SmolStr,
) -> Maybe<Option<TraitImplId>>
fn impl_implicit_impl_by_name( &self, key0: ImplDefId, key1: SmolStr, ) -> Maybe<Option<TraitImplId>>
Returns the trait impl of an implicit impl if name
exists in trait and not in the impl.
sourcefn impl_types(
&self,
key0: ImplDefId,
) -> Maybe<Arc<OrderedHashMap<ImplTypeDefId, ItemTypeAlias>>>
fn impl_types( &self, key0: ImplDefId, ) -> Maybe<Arc<OrderedHashMap<ImplTypeDefId, ItemTypeAlias>>>
Returns the type items in the impl.
sourcefn impl_type_ids(&self, key0: ImplDefId) -> Maybe<Arc<[ImplTypeDefId]>>
fn impl_type_ids(&self, key0: ImplDefId) -> Maybe<Arc<[ImplTypeDefId]>>
Returns the ids of the type items in the impl.
sourcefn impl_type_by_id(&self, key0: ImplTypeDefId) -> Maybe<Option<ItemTypeAlias>>
fn impl_type_by_id(&self, key0: ImplTypeDefId) -> Maybe<Option<ItemTypeAlias>>
Returns the impl AST of the impl type that matches the given id, if exists.
sourcefn impl_type_by_trait_type(
&self,
key0: ImplDefId,
key1: TraitTypeId,
) -> Maybe<ImplTypeDefId>
fn impl_type_by_trait_type( &self, key0: ImplDefId, key1: TraitTypeId, ) -> Maybe<ImplTypeDefId>
Returns the impl type item that matches the given trait type item, if exists.
sourcefn impl_constants(
&self,
key0: ImplDefId,
) -> Maybe<Arc<OrderedHashMap<ImplConstantDefId, ItemConstant>>>
fn impl_constants( &self, key0: ImplDefId, ) -> Maybe<Arc<OrderedHashMap<ImplConstantDefId, ItemConstant>>>
Returns the constant items in the impl.
sourcefn impl_impls(
&self,
key0: ImplDefId,
) -> Maybe<Arc<OrderedHashMap<ImplImplDefId, ItemImplAlias>>>
fn impl_impls( &self, key0: ImplDefId, ) -> Maybe<Arc<OrderedHashMap<ImplImplDefId, ItemImplAlias>>>
Returns the impls items in the impl.
sourcefn impl_impl_ids(&self, key0: ImplDefId) -> Maybe<Arc<[ImplImplDefId]>>
fn impl_impl_ids(&self, key0: ImplDefId) -> Maybe<Arc<[ImplImplDefId]>>
Returns the ids of the impl items in the impl.
sourcefn impl_impl_by_id(&self, key0: ImplImplDefId) -> Maybe<Option<ItemImplAlias>>
fn impl_impl_by_id(&self, key0: ImplImplDefId) -> Maybe<Option<ItemImplAlias>>
Returns the impl AST of the impl impl that matches the given id, if exists.
sourcefn impl_impl_by_trait_impl(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Maybe<ImplImplDefId>
fn impl_impl_by_trait_impl( &self, key0: ImplDefId, key1: TraitImplId, ) -> Maybe<ImplImplDefId>
Returns the impl impl item that matches the given trait impl item, if exists.
sourcefn is_implicit_impl_impl(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Maybe<bool>
fn is_implicit_impl_impl( &self, key0: ImplDefId, key1: TraitImplId, ) -> Maybe<bool>
Returns whether trait_impl_id
is an implicit impl in impl_def_id
.
sourcefn impl_constant_by_trait_constant(
&self,
key0: ImplDefId,
key1: TraitConstantId,
) -> Maybe<ImplConstantDefId>
fn impl_constant_by_trait_constant( &self, key0: ImplDefId, key1: TraitConstantId, ) -> Maybe<ImplConstantDefId>
Returns the impl constant item that matches the given trait constant item, if exists.
sourcefn impl_functions(
&self,
key0: ImplDefId,
) -> Maybe<OrderedHashMap<SmolStr, ImplFunctionId>>
fn impl_functions( &self, key0: ImplDefId, ) -> Maybe<OrderedHashMap<SmolStr, ImplFunctionId>>
Returns the functions in the impl.
sourcefn impl_function_by_trait_function(
&self,
key0: ImplDefId,
key1: TraitFunctionId,
) -> Maybe<Option<ImplFunctionId>>
fn impl_function_by_trait_function( &self, key0: ImplDefId, key1: TraitFunctionId, ) -> Maybe<Option<ImplFunctionId>>
Returns the impl function that matches the given trait function, if exists. Note that a function that doesn’t exist in the impl doesn’t necessarily indicate an error, as, e.g., a trait function that has a default implementation doesn’t have to be implemented in the impl.
sourcefn priv_impl_definition_data(
&self,
key0: ImplDefId,
) -> Maybe<ImplDefinitionData>
fn priv_impl_definition_data( &self, key0: ImplDefId, ) -> Maybe<ImplDefinitionData>
Private query to compute definition data about an impl.
sourcefn priv_impl_is_fully_concrete(&self, key0: ImplId) -> bool
fn priv_impl_is_fully_concrete(&self, key0: ImplId) -> bool
Private query to check if an impl is fully concrete.
sourcefn priv_impl_is_var_free(&self, key0: ImplId) -> bool
fn priv_impl_is_var_free(&self, key0: ImplId) -> bool
Private query to check if an impl contains no variables.
sourcefn impl_type_def_semantic_diagnostics(
&self,
key0: ImplTypeDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_type_def_semantic_diagnostics( &self, key0: ImplTypeDefId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of an impl item type.
sourcefn impl_type_def_resolved_type(&self, key0: ImplTypeDefId) -> Maybe<TypeId>
fn impl_type_def_resolved_type(&self, key0: ImplTypeDefId) -> Maybe<TypeId>
Returns the resolved type of an impl item type.
sourcefn impl_type_def_generic_params(
&self,
key0: ImplTypeDefId,
) -> Maybe<Vec<GenericParam>>
fn impl_type_def_generic_params( &self, key0: ImplTypeDefId, ) -> Maybe<Vec<GenericParam>>
Returns the generic parameters of an impl item type.
sourcefn impl_type_def_attributes(&self, key0: ImplTypeDefId) -> Maybe<Vec<Attribute>>
fn impl_type_def_attributes(&self, key0: ImplTypeDefId) -> Maybe<Vec<Attribute>>
Returns the attributes of an impl type.
sourcefn impl_type_def_resolver_data(
&self,
key0: ImplTypeDefId,
) -> Maybe<Arc<ResolverData>>
fn impl_type_def_resolver_data( &self, key0: ImplTypeDefId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an impl item type.
sourcefn impl_type_def_trait_type(&self, key0: ImplTypeDefId) -> Maybe<TraitTypeId>
fn impl_type_def_trait_type(&self, key0: ImplTypeDefId) -> Maybe<TraitTypeId>
Returns the trait type of an impl type.
sourcefn priv_impl_type_semantic_data(
&self,
key0: ImplTypeDefId,
) -> Maybe<ImplItemTypeData>
fn priv_impl_type_semantic_data( &self, key0: ImplTypeDefId, ) -> Maybe<ImplItemTypeData>
Private query to compute data about an impl item type.
sourcefn priv_impl_type_def_generic_params_data(
&self,
key0: ImplTypeDefId,
) -> Maybe<GenericParamsData>
fn priv_impl_type_def_generic_params_data( &self, key0: ImplTypeDefId, ) -> Maybe<GenericParamsData>
Private query to compute data about the generic parameters of an impl item type.
sourcefn impl_type_concrete_implized(&self, key0: ImplTypeId) -> Maybe<TypeId>
fn impl_type_concrete_implized(&self, key0: ImplTypeId) -> Maybe<TypeId>
Returns the implized impl type if the impl is concrete. Returns a TypeId that’s not an impl type with a concrete impl.
sourcefn impl_constant_def_semantic_diagnostics(
&self,
key0: ImplConstantDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_constant_def_semantic_diagnostics( &self, key0: ImplConstantDefId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of an impl item constant.
sourcefn impl_constant_def_value(
&self,
key0: ImplConstantDefId,
) -> Maybe<ConstValueId>
fn impl_constant_def_value( &self, key0: ImplConstantDefId, ) -> Maybe<ConstValueId>
Returns the resolved constant value of an impl item constant.
sourcefn impl_constant_def_resolver_data(
&self,
key0: ImplConstantDefId,
) -> Maybe<Arc<ResolverData>>
fn impl_constant_def_resolver_data( &self, key0: ImplConstantDefId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an impl item constant.
sourcefn impl_constant_def_trait_constant(
&self,
key0: ImplConstantDefId,
) -> Maybe<TraitConstantId>
fn impl_constant_def_trait_constant( &self, key0: ImplConstantDefId, ) -> Maybe<TraitConstantId>
Returns the type of an impl item constant.
sourcefn priv_impl_constant_semantic_data(
&self,
key0: ImplConstantDefId,
) -> Maybe<ImplItemConstantData>
fn priv_impl_constant_semantic_data( &self, key0: ImplConstantDefId, ) -> Maybe<ImplItemConstantData>
Private query to compute data about an impl item constant.
sourcefn impl_constant_implized_by_context(
&self,
key0: ImplConstantId,
key1: ImplDefId,
) -> Maybe<ConstValueId>
fn impl_constant_implized_by_context( &self, key0: ImplConstantId, key1: ImplDefId, ) -> Maybe<ConstValueId>
Returns the given impl constant, implized by the given impl context.
sourcefn impl_constant_concrete_implized_value(
&self,
key0: ImplConstantId,
) -> Maybe<ConstValueId>
fn impl_constant_concrete_implized_value( &self, key0: ImplConstantId, ) -> Maybe<ConstValueId>
Returns the implized impl constant value if the impl is concrete.
sourcefn impl_constant_concrete_implized_type(
&self,
key0: ImplConstantId,
) -> Maybe<TypeId>
fn impl_constant_concrete_implized_type( &self, key0: ImplConstantId, ) -> Maybe<TypeId>
Returns the implized impl constant type if the impl is concrete.
sourcefn impl_impl_def_semantic_diagnostics(
&self,
key0: ImplImplDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_impl_def_semantic_diagnostics( &self, key0: ImplImplDefId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of an impl item impl.
sourcefn impl_impl_def_resolver_data(
&self,
key0: ImplImplDefId,
) -> Maybe<Arc<ResolverData>>
fn impl_impl_def_resolver_data( &self, key0: ImplImplDefId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an impl item impl.
sourcefn impl_impl_def_trait_impl(&self, key0: ImplImplDefId) -> Maybe<TraitImplId>
fn impl_impl_def_trait_impl(&self, key0: ImplImplDefId) -> Maybe<TraitImplId>
Returns the type of an impl item impl.
sourcefn impl_impl_def_impl(&self, key0: ImplImplDefId) -> Maybe<ImplId>
fn impl_impl_def_impl(&self, key0: ImplImplDefId) -> Maybe<ImplId>
Returns the resolved impl of an impl item impl.
sourcefn priv_impl_impl_semantic_data(
&self,
key0: ImplImplDefId,
) -> Maybe<ImplItemImplData>
fn priv_impl_impl_semantic_data( &self, key0: ImplImplDefId, ) -> Maybe<ImplItemImplData>
Private query to compute data about an impl item impl.
sourcefn priv_impl_impl_def_generic_params_data(
&self,
key0: ImplImplDefId,
) -> Maybe<GenericParamsData>
fn priv_impl_impl_def_generic_params_data( &self, key0: ImplImplDefId, ) -> Maybe<GenericParamsData>
Private query to compute data about the generic parameters of an impl item impl.
sourcefn implicit_impl_impl_semantic_diagnostics(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Diagnostics<SemanticDiagnostic>
fn implicit_impl_impl_semantic_diagnostics( &self, key0: ImplDefId, key1: TraitImplId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of an implicit impl.
sourcefn implicit_impl_impl_impl(
&self,
key0: ImplDefId,
key1: TraitImplId,
) -> Maybe<ImplId>
fn implicit_impl_impl_impl( &self, key0: ImplDefId, key1: TraitImplId, ) -> Maybe<ImplId>
Returns the resolved impl of an implicit impl.
fn priv_implicit_impl_impl_semantic_data( &self, key0: ImplDefId, key1: TraitImplId, ) -> Maybe<ImplicitImplImplData>
sourcefn impl_impl_implized_by_context(
&self,
key0: ImplImplId,
key1: ImplDefId,
) -> Maybe<ImplId>
fn impl_impl_implized_by_context( &self, key0: ImplImplId, key1: ImplDefId, ) -> Maybe<ImplId>
Returns the implized impl impl if the impl is concrete.
sourcefn impl_impl_concrete_implized(&self, key0: ImplImplId) -> Maybe<ImplId>
fn impl_impl_concrete_implized(&self, key0: ImplImplId) -> Maybe<ImplId>
Returns the implized impl impl value if the impl is concrete.
sourcefn impl_impl_concrete_trait(&self, key0: ImplImplId) -> Maybe<ConcreteTraitId>
fn impl_impl_concrete_trait(&self, key0: ImplImplId) -> Maybe<ConcreteTraitId>
Returns the concrete trait of an impl impl.
sourcefn impl_function_declaration_diagnostics(
&self,
key0: ImplFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_function_declaration_diagnostics( &self, key0: ImplFunctionId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of an impl function’s declaration (signature).
sourcefn impl_function_signature(&self, key0: ImplFunctionId) -> Maybe<Signature>
fn impl_function_signature(&self, key0: ImplFunctionId) -> Maybe<Signature>
Returns the signature of an impl function.
sourcefn impl_function_generic_params(
&self,
key0: ImplFunctionId,
) -> Maybe<Vec<GenericParam>>
fn impl_function_generic_params( &self, key0: ImplFunctionId, ) -> Maybe<Vec<GenericParam>>
Returns the generic params of an impl function.
sourcefn priv_impl_function_generic_params_data(
&self,
key0: ImplFunctionId,
) -> Maybe<GenericParamsData>
fn priv_impl_function_generic_params_data( &self, key0: ImplFunctionId, ) -> Maybe<GenericParamsData>
Returns the generic params data of an impl function.
sourcefn impl_function_attributes(
&self,
key0: ImplFunctionId,
) -> Maybe<Vec<Attribute>>
fn impl_function_attributes( &self, key0: ImplFunctionId, ) -> Maybe<Vec<Attribute>>
Returns the attributes of an impl function.
sourcefn impl_function_resolver_data(
&self,
key0: ImplFunctionId,
) -> Maybe<Arc<ResolverData>>
fn impl_function_resolver_data( &self, key0: ImplFunctionId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an impl function’s declaration.
sourcefn impl_function_declaration_inline_config(
&self,
key0: ImplFunctionId,
) -> Maybe<InlineConfiguration>
fn impl_function_declaration_inline_config( &self, key0: ImplFunctionId, ) -> Maybe<InlineConfiguration>
Returns the inline configuration of an impl function’s declaration.
sourcefn impl_function_declaration_implicit_precedence(
&self,
key0: ImplFunctionId,
) -> Maybe<ImplicitPrecedence>
fn impl_function_declaration_implicit_precedence( &self, key0: ImplFunctionId, ) -> Maybe<ImplicitPrecedence>
Returns the implicits precedence of an impl function.
sourcefn impl_function_declaration_implicits(
&self,
key0: ImplFunctionId,
) -> Maybe<Vec<TypeId>>
fn impl_function_declaration_implicits( &self, key0: ImplFunctionId, ) -> Maybe<Vec<TypeId>>
Returns the explicit implicits of a signature of an impl function.
sourcefn impl_function_trait_function(
&self,
key0: ImplFunctionId,
) -> Maybe<TraitFunctionId>
fn impl_function_trait_function( &self, key0: ImplFunctionId, ) -> Maybe<TraitFunctionId>
Returns the trait function of an impl function.
sourcefn priv_impl_function_declaration_data(
&self,
key0: ImplFunctionId,
) -> Maybe<ImplFunctionDeclarationData>
fn priv_impl_function_declaration_data( &self, key0: ImplFunctionId, ) -> Maybe<ImplFunctionDeclarationData>
Private query to compute data about an impl function declaration.
sourcefn impl_function_body_diagnostics(
&self,
key0: ImplFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_function_body_diagnostics( &self, key0: ImplFunctionId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of an impl function definition (declaration + body).
sourcefn impl_function_body(&self, key0: ImplFunctionId) -> Maybe<Arc<FunctionBody>>
fn impl_function_body(&self, key0: ImplFunctionId) -> Maybe<Arc<FunctionBody>>
Returns the definition of an impl function.
sourcefn impl_function_body_resolver_data(
&self,
key0: ImplFunctionId,
) -> Maybe<Arc<ResolverData>>
fn impl_function_body_resolver_data( &self, key0: ImplFunctionId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an impl function’s definition.
sourcefn priv_impl_function_body_data(
&self,
key0: ImplFunctionId,
) -> Maybe<FunctionBodyData>
fn priv_impl_function_body_data( &self, key0: ImplFunctionId, ) -> Maybe<FunctionBodyData>
Private query to compute data about an impl function definition (declaration + body)
sourcefn trait_type_implized_by_context(
&self,
key0: TraitTypeId,
key1: ImplDefId,
) -> Maybe<TypeId>
fn trait_type_implized_by_context( &self, key0: TraitTypeId, key1: ImplDefId, ) -> Maybe<TypeId>
Returns the impl type for the given trait type, by implization by the given impl context, if the impl matches the trait of the trait type.
sourcefn free_function_declaration_diagnostics(
&self,
key0: FreeFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn free_function_declaration_diagnostics( &self, key0: FreeFunctionId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a free function’s declaration (signature).
sourcefn free_function_signature(&self, key0: FreeFunctionId) -> Maybe<Signature>
fn free_function_signature(&self, key0: FreeFunctionId) -> Maybe<Signature>
Returns the signature of a free function.
sourcefn free_function_declaration_implicits(
&self,
key0: FreeFunctionId,
) -> Maybe<Vec<TypeId>>
fn free_function_declaration_implicits( &self, key0: FreeFunctionId, ) -> Maybe<Vec<TypeId>>
Returns the explicit implicits of a signature of a free function.
sourcefn free_function_declaration_implicit_precedence(
&self,
key0: FreeFunctionId,
) -> Maybe<ImplicitPrecedence>
fn free_function_declaration_implicit_precedence( &self, key0: FreeFunctionId, ) -> Maybe<ImplicitPrecedence>
Returns the implicits precedence of a free function.
sourcefn free_function_generic_params(
&self,
key0: FreeFunctionId,
) -> Maybe<Vec<GenericParam>>
fn free_function_generic_params( &self, key0: FreeFunctionId, ) -> Maybe<Vec<GenericParam>>
Returns the generic params of a free function.
sourcefn free_function_generic_params_data(
&self,
key0: FreeFunctionId,
) -> Maybe<GenericParamsData>
fn free_function_generic_params_data( &self, key0: FreeFunctionId, ) -> Maybe<GenericParamsData>
Returns the generic params data of a free function.
sourcefn free_function_declaration_resolver_data(
&self,
key0: FreeFunctionId,
) -> Maybe<Arc<ResolverData>>
fn free_function_declaration_resolver_data( &self, key0: FreeFunctionId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a free function’s declaration.
sourcefn free_function_declaration_inline_config(
&self,
key0: FreeFunctionId,
) -> Maybe<InlineConfiguration>
fn free_function_declaration_inline_config( &self, key0: FreeFunctionId, ) -> Maybe<InlineConfiguration>
Returns the inline configuration of a free function’s declaration.
sourcefn priv_free_function_declaration_data(
&self,
key0: FreeFunctionId,
) -> Maybe<FunctionDeclarationData>
fn priv_free_function_declaration_data( &self, key0: FreeFunctionId, ) -> Maybe<FunctionDeclarationData>
Private query to compute data about a free function declaration - its signature excluding its body.
sourcefn free_function_body_diagnostics(
&self,
key0: FreeFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn free_function_body_diagnostics( &self, key0: FreeFunctionId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a free function’s body.
sourcefn free_function_body_resolver_data(
&self,
key0: FreeFunctionId,
) -> Maybe<Arc<ResolverData>>
fn free_function_body_resolver_data( &self, key0: FreeFunctionId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of a free function’s body.
sourcefn priv_free_function_body_data(
&self,
key0: FreeFunctionId,
) -> Maybe<FunctionBodyData>
fn priv_free_function_body_data( &self, key0: FreeFunctionId, ) -> Maybe<FunctionBodyData>
Private query to compute data about a free function’s body.
sourcefn function_declaration_diagnostics(
&self,
key0: FunctionWithBodyId,
) -> Diagnostics<SemanticDiagnostic>
fn function_declaration_diagnostics( &self, key0: FunctionWithBodyId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a declaration (signature) of a function with a body.
sourcefn function_declaration_inline_config(
&self,
key0: FunctionWithBodyId,
) -> Maybe<InlineConfiguration>
fn function_declaration_inline_config( &self, key0: FunctionWithBodyId, ) -> Maybe<InlineConfiguration>
Returns the inline configuration of a declaration (signature) of a function with a body.
sourcefn function_declaration_implicit_precedence(
&self,
key0: FunctionWithBodyId,
) -> Maybe<ImplicitPrecedence>
fn function_declaration_implicit_precedence( &self, key0: FunctionWithBodyId, ) -> Maybe<ImplicitPrecedence>
Returns the implicit order of a declaration (signature) of a function with a body.
sourcefn function_with_body_signature(
&self,
key0: FunctionWithBodyId,
) -> Maybe<Signature>
fn function_with_body_signature( &self, key0: FunctionWithBodyId, ) -> Maybe<Signature>
Returns the signature of a function with a body.
sourcefn function_with_body_generic_params(
&self,
key0: FunctionWithBodyId,
) -> Maybe<Vec<GenericParam>>
fn function_with_body_generic_params( &self, key0: FunctionWithBodyId, ) -> Maybe<Vec<GenericParam>>
Returns all the available generic params inside a function body.
sourcefn function_with_body_attributes(
&self,
key0: FunctionWithBodyId,
) -> Maybe<Vec<Attribute>>
fn function_with_body_attributes( &self, key0: FunctionWithBodyId, ) -> Maybe<Vec<Attribute>>
Returns the attributes of a function with a body.
sourcefn function_body_diagnostics(
&self,
key0: FunctionWithBodyId,
) -> Diagnostics<SemanticDiagnostic>
fn function_body_diagnostics( &self, key0: FunctionWithBodyId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a body of a function (with a body).
sourcefn function_body_expr(&self, key0: FunctionWithBodyId) -> Maybe<ExprId>
fn function_body_expr(&self, key0: FunctionWithBodyId) -> Maybe<ExprId>
Returns the body expr of a function (with a body).
sourcefn function_body(&self, key0: FunctionWithBodyId) -> Maybe<Arc<FunctionBody>>
fn function_body(&self, key0: FunctionWithBodyId) -> Maybe<Arc<FunctionBody>>
Returns the body of a function (with a body).
sourcefn priv_extern_function_declaration_data(
&self,
key0: ExternFunctionId,
) -> Maybe<FunctionDeclarationData>
fn priv_extern_function_declaration_data( &self, key0: ExternFunctionId, ) -> Maybe<FunctionDeclarationData>
Private query to compute data about an extern function declaration. An extern function has no body, and thus only has a declaration.
sourcefn extern_function_declaration_inline_config(
&self,
key0: ExternFunctionId,
) -> Maybe<InlineConfiguration>
fn extern_function_declaration_inline_config( &self, key0: ExternFunctionId, ) -> Maybe<InlineConfiguration>
Returns the inline configuration of an extern function’s declaration.
sourcefn extern_function_declaration_diagnostics(
&self,
key0: ExternFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn extern_function_declaration_diagnostics( &self, key0: ExternFunctionId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of an extern function declaration. An extern function has no body, and thus only has a declaration.
sourcefn extern_function_signature(&self, key0: ExternFunctionId) -> Maybe<Signature>
fn extern_function_signature(&self, key0: ExternFunctionId) -> Maybe<Signature>
Returns the signature of an extern function.
sourcefn extern_function_declaration_generic_params(
&self,
key0: ExternFunctionId,
) -> Maybe<Vec<GenericParam>>
fn extern_function_declaration_generic_params( &self, key0: ExternFunctionId, ) -> Maybe<Vec<GenericParam>>
Returns the generic params of an extern function.
sourcefn extern_function_declaration_generic_params_data(
&self,
key0: ExternFunctionId,
) -> Maybe<GenericParamsData>
fn extern_function_declaration_generic_params_data( &self, key0: ExternFunctionId, ) -> Maybe<GenericParamsData>
Returns the generic params data of an extern function.
sourcefn extern_function_declaration_implicits(
&self,
key0: ExternFunctionId,
) -> Maybe<Vec<TypeId>>
fn extern_function_declaration_implicits( &self, key0: ExternFunctionId, ) -> Maybe<Vec<TypeId>>
Returns the explicit implicits of an extern function declaration.
sourcefn extern_function_declaration_refs(
&self,
key0: ExternFunctionId,
) -> Maybe<Vec<Parameter>>
fn extern_function_declaration_refs( &self, key0: ExternFunctionId, ) -> Maybe<Vec<Parameter>>
Returns the ref parameters of an extern function declaration.
sourcefn extern_function_declaration_resolver_data(
&self,
key0: ExternFunctionId,
) -> Maybe<Arc<ResolverData>>
fn extern_function_declaration_resolver_data( &self, key0: ExternFunctionId, ) -> Maybe<Arc<ResolverData>>
Returns the resolution resolved_items of an extern function.
sourcefn priv_extern_type_declaration_data(
&self,
key0: ExternTypeId,
) -> Maybe<ExternTypeDeclarationData>
fn priv_extern_type_declaration_data( &self, key0: ExternTypeId, ) -> Maybe<ExternTypeDeclarationData>
Private query to compute data about an extern type declaration. An extern type has no body, and thus only has a declaration.
sourcefn extern_type_declaration_diagnostics(
&self,
key0: ExternTypeId,
) -> Diagnostics<SemanticDiagnostic>
fn extern_type_declaration_diagnostics( &self, key0: ExternTypeId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of an extern type declaration. An extern type has no body, and thus only has a declaration.
sourcefn extern_type_declaration_generic_params(
&self,
key0: ExternTypeId,
) -> Maybe<Vec<GenericParam>>
fn extern_type_declaration_generic_params( &self, key0: ExternTypeId, ) -> Maybe<Vec<GenericParam>>
Returns the generic params of an extern type.
sourcefn extern_type_declaration_generic_params_data(
&self,
key0: ExternTypeId,
) -> Maybe<GenericParamsData>
fn extern_type_declaration_generic_params_data( &self, key0: ExternTypeId, ) -> Maybe<GenericParamsData>
Returns the generic params data of an extern type.
sourcefn extern_type_attributes(&self, key0: ExternTypeId) -> Maybe<Vec<Attribute>>
fn extern_type_attributes(&self, key0: ExternTypeId) -> Maybe<Vec<Attribute>>
Returns the attributes of an extern type.
sourcefn function_title_signature(&self, key0: FunctionTitleId) -> Maybe<Signature>
fn function_title_signature(&self, key0: FunctionTitleId) -> Maybe<Signature>
Returns the signature of the given FunctionTitleId. This include free functions, extern functions, etc…
sourcefn function_title_generic_params(
&self,
key0: FunctionTitleId,
) -> Maybe<Vec<GenericParam>>
fn function_title_generic_params( &self, key0: FunctionTitleId, ) -> Maybe<Vec<GenericParam>>
Returns the generic parameters of the given FunctionTitleId. This include free functions, extern functions, etc…
sourcefn concrete_function_signature(&self, key0: FunctionId) -> Maybe<Signature>
fn concrete_function_signature(&self, key0: FunctionId) -> Maybe<Signature>
Returns the signature of a concrete function. This include free functions, extern functions, etc…
sourcefn generic_type_generic_params(
&self,
key0: GenericTypeId,
) -> Maybe<Vec<GenericParam>>
fn generic_type_generic_params( &self, key0: GenericTypeId, ) -> Maybe<Vec<GenericParam>>
Returns the generic params of a generic type.
sourcefn generic_param_semantic(&self, key0: GenericParamId) -> Maybe<GenericParam>
fn generic_param_semantic(&self, key0: GenericParamId) -> Maybe<GenericParam>
Returns the semantic data of a generic param.
sourcefn generic_param_diagnostics(
&self,
key0: GenericParamId,
) -> Diagnostics<SemanticDiagnostic>
fn generic_param_diagnostics( &self, key0: GenericParamId, ) -> Diagnostics<SemanticDiagnostic>
Returns the semantic diagnostics of a generic param.
sourcefn generic_param_resolver_data(
&self,
key0: GenericParamId,
) -> Maybe<Arc<ResolverData>>
fn generic_param_resolver_data( &self, key0: GenericParamId, ) -> Maybe<Arc<ResolverData>>
Returns the resolver data of a generic param.
sourcefn generic_impl_param_trait(&self, key0: GenericParamId) -> Maybe<TraitId>
fn generic_impl_param_trait(&self, key0: GenericParamId) -> Maybe<TraitId>
Returns the trait a generic param impl should implement. Panics if the generic param is not an impl generic param.
sourcefn priv_generic_param_data(
&self,
key0: GenericParamId,
) -> Maybe<GenericParamData>
fn priv_generic_param_data( &self, key0: GenericParamId, ) -> Maybe<GenericParamData>
Private query to compute data about a generic param.
sourcefn single_value_type(&self, key0: TypeId) -> Maybe<bool>
fn single_value_type(&self, key0: TypeId) -> Maybe<bool>
Returns true if there is only one value for the given type and hence the values of the given type are all interchangeable. Examples include the unit type tuple of a unit type and empty structs. Always returns false for extern types.
sourcefn type_size_info(&self, key0: TypeId) -> Maybe<TypeSizeInformation>
fn type_size_info(&self, key0: TypeId) -> Maybe<TypeSizeInformation>
Returns the type size information for the given type.
sourcefn type_info(&self, key0: ImplLookupContext, key1: TypeId) -> Maybe<TypeInfo>
fn type_info(&self, key0: ImplLookupContext, key1: TypeId) -> Maybe<TypeInfo>
Returns the generic_type of a generic function. This include free types, extern types, etc…
sourcefn priv_type_is_fully_concrete(&self, key0: TypeId) -> bool
fn priv_type_is_fully_concrete(&self, key0: TypeId) -> bool
Private query to check if a type is fully concrete.
sourcefn priv_type_is_var_free(&self, key0: TypeId) -> bool
fn priv_type_is_var_free(&self, key0: TypeId) -> bool
Private query to check if a type contains no variables.
sourcefn expr_semantic(&self, key0: FunctionWithBodyId, key1: ExprId) -> Expr
fn expr_semantic(&self, key0: FunctionWithBodyId, key1: ExprId) -> Expr
Assumes function and expression are present.
sourcefn pattern_semantic(&self, key0: FunctionWithBodyId, key1: PatternId) -> Pattern
fn pattern_semantic(&self, key0: FunctionWithBodyId, key1: PatternId) -> Pattern
Assumes function and pattern are present.
sourcefn statement_semantic(
&self,
key0: FunctionWithBodyId,
key1: StatementId,
) -> Statement
fn statement_semantic( &self, key0: FunctionWithBodyId, key1: StatementId, ) -> Statement
Assumes function and statement are valid.
fn lookup_resolved_generic_item_by_ptr( &self, key0: LookupItemId, key1: TerminalIdentifierPtr, ) -> Option<ResolvedGenericItem>
fn lookup_resolved_concrete_item_by_ptr( &self, key0: LookupItemId, key1: TerminalIdentifierPtr, ) -> Option<ResolvedConcreteItem>
sourcefn module_semantic_diagnostics(
&self,
key0: ModuleId,
) -> Maybe<Diagnostics<SemanticDiagnostic>>
fn module_semantic_diagnostics( &self, key0: ModuleId, ) -> Maybe<Diagnostics<SemanticDiagnostic>>
Aggregates module level semantic diagnostics.
sourcefn file_semantic_diagnostics(
&self,
key0: FileId,
) -> Maybe<Diagnostics<SemanticDiagnostic>>
fn file_semantic_diagnostics( &self, key0: FileId, ) -> Maybe<Diagnostics<SemanticDiagnostic>>
Aggregates file level semantic diagnostics.
fn core_crate(&self) -> CrateId
fn core_module(&self) -> ModuleId
fn core_felt252_ty(&self) -> TypeId
fn analyzer_plugins(&self) -> Vec<Arc<dyn AnalyzerPlugin>>
sourcefn set_analyzer_plugins(&mut self, value__: Vec<Arc<dyn AnalyzerPlugin>>)
fn set_analyzer_plugins(&mut self, value__: Vec<Arc<dyn AnalyzerPlugin>>)
Set the value of the analyzer_plugins
input.
See analyzer_plugins
for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn set_analyzer_plugins_with_durability(
&mut self,
value__: Vec<Arc<dyn AnalyzerPlugin>>,
durability__: Durability,
)
fn set_analyzer_plugins_with_durability( &mut self, value__: Vec<Arc<dyn AnalyzerPlugin>>, durability__: Durability, )
Set the value of the analyzer_plugins
input and promise
that its value will never change again.
See analyzer_plugins
for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn methods_in_module(
&self,
key0: ModuleId,
key1: TypeFilter,
) -> Arc<[TraitFunctionId]>
fn methods_in_module( &self, key0: ModuleId, key1: TypeFilter, ) -> Arc<[TraitFunctionId]>
Returns all methods in a module that match the given type filter.
sourcefn methods_in_crate(
&self,
key0: CrateId,
key1: TypeFilter,
) -> Arc<[TraitFunctionId]>
fn methods_in_crate( &self, key0: CrateId, key1: TypeFilter, ) -> Arc<[TraitFunctionId]>
Returns all methods in a crate that match the given type filter.