pub fn try_lookup_meta(
        &mut self,
        spanned: Span,
        item: &Item,
    ) -> CompileResult<Option<CompileMeta>> {
        log::trace!("lookup meta: {:?}", item);

        if let Some(meta) = self.query.query_meta(spanned, item, Default::default())? {
            log::trace!("found in query: {:?}", meta);
            self.visitor.visit_meta(self.source_id, &meta, spanned);
            return Ok(Some(meta));
        }

        if let Some(meta) = self.context.lookup_meta(item) {
            log::trace!("found in context: {:?}", meta);
            self.visitor.visit_meta(self.source_id, &meta, spanned);
            return Ok(Some(meta));
        }

        Ok(None)
    }
/// Access the meta for the given language item.
Access the meta for the given language item.
Access the meta for the given language item .
pub fn try_lookup_meta(
        &mut self,
        spanned: Span,
        item: &Item,
    ) -> CompileResult<Option<CompileMeta>> {
        log::trace!("lookup meta: {:?}", item);
        if let Some(meta) = self.query.query_meta(spanned, item, Default::default())? {
            log::trace!("found in query: {:?}", meta);
            self.visitor.visit_meta(self.source_id, &meta, spanned);
            return Ok(Some(meta));
        }
        if let Some(meta) = self.context.lookup_meta(item) {
            log::trace!("found in context: {:?}", meta);
            self.visitor.visit_meta(self.source_id, &meta, spanned);
            return Ok(Some(meta));
        }
        Ok(None)
    }
pub fn try_lookup_meta ( & mut self , spanned : Span , item : & Item , ) -> CompileResult < Option < CompileMeta > > { log :: trace ! ( " " item ) ; if let Some ( meta ) = self . query . query_meta ( spanned , item , Default :: default ( ) ) ? { log :: trace ! ( " " meta ) ; self . visitor . visit_meta ( self . source_id , & meta , spanned ) ; return Ok ( Some ( meta ) ) ; } if let Some ( meta ) = self . context . lookup_meta ( item ) { log :: trace ! ( " " meta ) ; self . visitor . visit_meta ( self . source_id , & meta , spanned ) ; return Ok ( Some ( meta ) ) ; } Ok ( None ) }
Access the meta for the given language item.
Access the meta for the given language item .
&mut self
spanned
Span
item
&Item
&mut self
spanned
Span
item
&Item