cairo_lang_lowering::utils

Trait RebuilderEx

source
pub trait RebuilderEx: Rebuilder {
    // Provided methods
    fn rebuild_statement(&mut self, statement: &Statement) -> Statement { ... }
    fn rebuild_remapping(&mut self, remapping: &VarRemapping) -> VarRemapping { ... }
    fn rebuild_end(&mut self, end: &FlatBlockEnd) -> FlatBlockEnd { ... }
    fn rebuild_block(&mut self, block: &FlatBlock) -> FlatBlock { ... }
}

Provided Methods§

source

fn rebuild_statement(&mut self, statement: &Statement) -> Statement

Rebuilds the statement with renamed var and block ids.

source

fn rebuild_remapping(&mut self, remapping: &VarRemapping) -> VarRemapping

Apply map_var_id to all the variable in the remapping.

source

fn rebuild_end(&mut self, end: &FlatBlockEnd) -> FlatBlockEnd

Rebuilds the block end with renamed var and block ids.

source

fn rebuild_block(&mut self, block: &FlatBlock) -> FlatBlock

Rebuilds the block with renamed var and block ids.

Implementors§