pub fn index_async_block(
        &self,
        item: &Arc<CompileItem>,
        source: &Arc<Source>,
        ast: ast::Block,
        captures: Arc<[CompileMetaCapture]>,
        call: Call,
        do_move: bool,
    ) -> Result<(), QueryError> {
        log::trace!("new closure: {:?}", item.item);

        self.inner.borrow_mut().index(IndexedEntry {
            item: item.clone(),
            source: source.clone(),
            indexed: Indexed::AsyncBlock(AsyncBlock {
                ast,
                captures,
                call,
                do_move,
            }),
        });

        Ok(())
    }
/// Add a new async block.
Add a new async block.
Add a new async block .
pub fn index_async_block(
        &self,
        item: &Arc<CompileItem>,
        source: &Arc<Source>,
        ast: ast::Block,
        captures: Arc<[CompileMetaCapture]>,
        call: Call,
        do_move: bool,
    ) -> Result<(), QueryError> {
        log::trace!("new closure: {:?}", item.item);
        self.inner.borrow_mut().index(IndexedEntry {
            item: item.clone(),
            source: source.clone(),
            indexed: Indexed::AsyncBlock(AsyncBlock {
                ast,
                captures,
                call,
                do_move,
            }),
        });
        Ok(())
    }
pub fn index_async_block ( & self , item : & Arc < CompileItem > , source : & Arc < Source > , ast : ast :: Block , captures : Arc < [ CompileMetaCapture ] > , call : Call , do_move : bool , ) -> Result < ( ) , QueryError > { log :: trace ! ( " " item item ) ; self . inner . borrow_mut ( ) . index ( IndexedEntry { item : item . clone ( ) , source : source . clone ( ) , indexed : Indexed :: AsyncBlock ( AsyncBlock { ast , captures , call , do_move , } ) , } ) ; Ok ( ( ) ) }
Add a new async block.
Add a new async block .
&self
item
&Arc<CompileItem>
source
&Arc<Source>
ast
ast::Block
captures
Arc<[CompileMetaCapture]>
call
Call
do_move
bool
&self
item
&Arc<CompileItem>
source
&Arc<Source>
ast
ast::Block
captures
Arc<[CompileMetaCapture]>
call
Call
do_move
bool