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§