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§