MCPcopy Create free account
hub / github.com/SplootCode/splootcode / generateWhile

Function generateWhile

python/convert_ast.py:236–242  ·  view source on GitHub ↗
(whileStatement)

Source from the content-addressed store, hash-verified

234 })
235
236def 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
244def generateFor(forStatement):
245 body = getBlockBodyFromStatements(forStatement.body)

Callers 1

generateSplootStatementFunction · 0.85

Calls 3

generateExpressionFunction · 0.85
SplootNodeFunction · 0.70

Tested by

no test coverage detected