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§