cairo_lang_lowering::utils

Trait Rebuilder

source
pub trait Rebuilder {
    // Required method
    fn map_var_id(&mut self, var: VariableId) -> VariableId;

    // Provided methods
    fn map_var_usage(&mut self, var_usage: VarUsage) -> VarUsage { ... }
    fn map_location(&mut self, location: LocationId) -> LocationId { ... }
    fn map_block_id(&mut self, block: BlockId) -> BlockId { ... }
    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

Provided Methods§

source

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

source

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

source

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

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§