(whileStatement)
| 234 | }) |
| 235 | |
| 236 | def generateWhile(whileStatement): |
| 237 | test = generateExpression(whileStatement.test) |
| 238 | body = getBlockBodyFromStatements(whileStatement.body) |
| 239 | return SplootNode("PYTHON_WHILE_LOOP", { |
| 240 | 'condition': [test], |
| 241 | 'block': body |
| 242 | }) |
| 243 | |
| 244 | def generateFor(forStatement): |
| 245 | body = getBlockBodyFromStatements(forStatement.body) |
no test coverage detected