(StarlarkThread.Frame fr, IfStatement node)
| 231 | } |
| 232 | |
| 233 | private static TokenKind execIf(StarlarkThread.Frame fr, IfStatement node) |
| 234 | throws EvalException, InterruptedException { |
| 235 | boolean cond = Starlark.truth(eval(fr, node.getCondition())); |
| 236 | if (cond) { |
| 237 | return execStatements(fr, node.getThenBlock(), /* indented= */ true); |
| 238 | } else if (node.getElseBlock() != null) { |
| 239 | return execStatements(fr, node.getElseBlock(), /* indented= */ true); |
| 240 | } |
| 241 | return TokenKind.PASS; |
| 242 | } |
| 243 | |
| 244 | private static void execLoad(StarlarkThread.Frame fr, LoadStatement node) throws EvalException { |
| 245 | // Has the application defined a behavior for load statements in this thread? |
no test coverage detected