(set: BoxedRuleSet, expr: BoxedExpression)
| 102 | }); |
| 103 | |
| 104 | const finalValue = (set: BoxedRuleSet, expr: BoxedExpression) => { |
| 105 | const steps = replace(expr, set, REPLACE_OPTS); |
| 106 | return steps.length ? steps[steps.length - 1].value : expr; |
| 107 | }; |
| 108 | const trailingBecause = (set: BoxedRuleSet, expr: BoxedExpression) => { |
| 109 | const steps = replace(expr, set, REPLACE_OPTS); |
| 110 | return steps.length ? steps[steps.length - 1].because : null; |
no test coverage detected