cairo_lang_semantic::expr::compute

Function resolve_variable_by_name

source
pub fn resolve_variable_by_name(
    ctx: &mut ComputationContext<'_>,
    identifier: &TerminalIdentifier,
    stable_ptr: ExprPtr,
) -> Maybe<Expr>
Expand description

Resolves a variable given a context and a simple name.

Reports a diagnostic if the variable was not found.