Skip to main content

json_to_located_expr

Function json_to_located_expr 

Source
pub fn json_to_located_expr(
    codec: CodecId,
    value: &Value,
    budget: &mut DecodeBudget,
    depth: usize,
) -> Result<LocatedExpr>
Expand description

Reads JSON back into a LocatedExpr, recovering the source origin from a $located wrapper when present and otherwise decoding a bare expression.