cairo_lang_semantic::expr::compute

Function get_variable_by_name

Source
pub fn get_variable_by_name(
    ctx: &mut ComputationContext<'_>,
    variable_name: &SmolStr,
    stable_ptr: ExprPtr,
) -> Option<Expr>
Expand description

Returns the requested variable from the environment if it exists. Returns None otherwise.