pub(crate) fn new_function_reexport(
        &self,
        location: Location,
        item: &Item,
        target: &Item,
    ) -> Result<(), CompileError> {
        let mut inner = self.inner.borrow_mut();
        let hash = Hash::type_hash(item);
        let target = Hash::type_hash(target);

        if inner.reexports.insert(hash, target).is_some() {
            return Err(CompileError::new(
                location.span,
                CompileErrorKind::FunctionReExportConflict { hash },
            ));
        }

        Ok(())
    }
/// Register a new function re-export.
Register a new function re-export.
Register a new function re - export .
pub(crate) fn new_function_reexport(
        &self,
        location: Location,
        item: &Item,
        target: &Item,
    ) -> Result<(), CompileError> {
        let mut inner = self.inner.borrow_mut();
        let hash = Hash::type_hash(item);
        let target = Hash::type_hash(target);
        if inner.reexports.insert(hash, target).is_some() {
            return Err(CompileError::new(
                location.span,
                CompileErrorKind::FunctionReExportConflict { hash },
            ));
        }
        Ok(())
    }
pub ( crate ) fn new_function_reexport ( & self , location : Location , item : & Item , target : & Item , ) -> Result < ( ) , CompileError > { let mut inner = self . inner . borrow_mut ( ) ; let hash = Hash :: type_hash ( item ) ; let target = Hash :: type_hash ( target ) ; if inner . reexports . insert ( hash , target ) . is_some ( ) { return Err ( CompileError :: new ( location . span , CompileErrorKind :: FunctionReExportConflict { hash } , ) ) ; } Ok ( ( ) ) }
Register a new function re-export.
Register a new function re - export .
&self
location
Location
item
&Item
target
&Item
&self
location
Location
item
&Item
target
&Item