cairo_lang_lowering::utils

Trait Rebuilder

Source
pub trait Rebuilder {
    // Required methods
    fn map_var_id(&mut self, var: VariableId) -> VariableId;
    fn map_block_id(&mut self, block: BlockId) -> BlockId;

    // Provided methods
    fn map_var_usage(&mut self, var_usage: VarUsage) -> VarUsage { ... }
    fn map_location(&mut self, location: LocationId) -> LocationId { ... }
    fn transform_statement(&mut self, _statement: &mut Statement) { ... }
    fn transform_remapping(&mut self, _remapping: &mut VarRemapping) { ... }
    fn transform_end(&mut self, _end: &mut FlatBlockEnd) { ... }
    fn transform_block(&mut self, _block: &mut FlatBlock) { ... }
}
Expand description

A rebuilder trait for rebuilding lowered representation.

Required Methods§

Source

fn map_var_id(&mut self, var: VariableId) -> VariableId

Source

fn map_block_id(&mut self, block: BlockId) -> BlockId

Provided Methods§

Source

fn map_var_usage(&mut self, var_usage: VarUsage) -> VarUsage

Source

fn map_location(&mut self, location: LocationId) -> LocationId

Source

fn transform_statement(&mut self, _statement: &mut Statement)

Source

fn transform_remapping(&mut self, _remapping: &mut VarRemapping)

Source

fn transform_end(&mut self, _end: &mut FlatBlockEnd)

Source

fn transform_block(&mut self, _block: &mut FlatBlock)

Implementors§