cairo_lang_semantic::items::constant

Function evaluate_constant_expr

source
pub fn evaluate_constant_expr(
    db: &dyn SemanticGroup,
    exprs: &Arena<Expr>,
    expr_id: ExprId,
    diagnostics: &mut SemanticDiagnostics,
) -> ConstValue
Expand description

evaluate the given const expression value.