cairo_lang_semantic::literals

Function try_extract_minus_literal

source
pub fn try_extract_minus_literal(
    db: &dyn SemanticGroup,
    exprs: &Arena<Expr>,
    expr: &ExprFunctionCall,
) -> Option<BigInt>
Expand description

If the given function call expression is a minus literal, extracts the literal. Otherwise, returns None.