git.delta.rocks / jrsonnet / refs/commits / 21c8e9b6c2ed

difftreelog

feat(evaluator) push frame for if condition

Lach2020-08-26parent: #0bd0b86.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/evaluate.rsdiffbeforeafterboth
589 cond_then,589 cond_then,
590 cond_else,590 cond_else,
591 } => {591 } => {
592 if evaluate(context.clone(), &cond.0)?592 if push(
593 loc,
594 || "if condition".to_owned(),
593 .try_cast_bool("if condition should be of type `boolean`")?595 || evaluate(context.clone(), &cond.0)?.try_cast_bool("in if condition"),
594 {596 )? {
595 evaluate(context, cond_then)?597 evaluate(context, cond_then)?
596 } else {598 } else {
597 match cond_else {599 match cond_else {