cairo_lang_semantic::lookup_item

Trait LookupItemEx

source
pub trait LookupItemEx: HasResolverData {
    // Required methods
    fn function_with_body(&self) -> Option<FunctionWithBodyId>;
    fn resolver_context(
        &self,
        db: &dyn SemanticGroup,
    ) -> Maybe<Arc<ResolverData>>;
}

Required Methods§

source

fn function_with_body(&self) -> Option<FunctionWithBodyId>

source

fn resolver_context(&self, db: &dyn SemanticGroup) -> Maybe<Arc<ResolverData>>

Returns the resolver data of the parent generic item if exist.

Implementations on Foreign Types§

source§

impl LookupItemEx for LookupItemId

Implementors§