swc_ecma_utils

Function calc_literal_cost

source
pub fn calc_literal_cost<T>(e: &T, allow_non_json_value: bool) -> (bool, usize)
where T: VisitWith<LiteralVisitor>,