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

Function generateWhileStatement

python/text_generator.py:372–378  ·  view source on GitHub ↗
(while_node)

Source from the content-addressed store, hash-verified

370 ]
371
372def generateWhileStatement(while_node):
373 condition = generateAstExpression(while_node["childSets"]["condition"][0])
374 statements = getStatementsFromBlock(while_node["childSets"]["block"])
375
376 return [
377 ast.While(condition, statements, []),
378 ]
379
380def generateFunctionArguments(arg_list):
381 args = []

Callers 1

generateAstStatementFunction · 0.70

Calls 2

generateAstExpressionFunction · 0.70
getStatementsFromBlockFunction · 0.70

Tested by

no test coverage detected