Skip to main content

constant_gen

Function constant_gen 

Source
pub fn constant_gen(
    name: &str,
    contract: &Contract,
    ir_byte_span: &AstSpan,
) -> Result<Option<PushValue>, CodegenError>
Expand description

Transforms a constant definition into a PushValue Returns None for __NOOP constants (which generate no bytecode)