MCPcopy Index your code
hub / github.com/bazelbuild/bazel / evalConditional

Method evalConditional

src/main/java/net/starlark/java/eval/Eval.java:628–632  ·  view source on GitHub ↗
(StarlarkThread.Frame fr, ConditionalExpression cond)

Source from the content-addressed store, hash-verified

626 }
627
628 private static Object evalConditional(StarlarkThread.Frame fr, ConditionalExpression cond)
629 throws EvalException, InterruptedException {
630 Object v = eval(fr, cond.getCondition());
631 return eval(fr, Starlark.truth(v) ? cond.getThenCase() : cond.getElseCase());
632 }
633
634 private static Object evalDict(StarlarkThread.Frame fr, DictExpression dictexpr)
635 throws EvalException, InterruptedException {

Callers 1

evalMethod · 0.95

Calls 5

evalMethod · 0.95
truthMethod · 0.95
getThenCaseMethod · 0.80
getElseCaseMethod · 0.80
getConditionMethod · 0.45

Tested by

no test coverage detected