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

Function getBlockBodyFromStatements

python/convert_ast.py:206–209  ·  view source on GitHub ↗
(blockStatements)

Source from the content-addressed store, hash-verified

204 return SplootNode("PYTHON_EXPRESSION", {"tokens": tokens})
205
206def getBlockBodyFromStatements(blockStatements):
207 body = [generateSplootStatement(s) for s in blockStatements]
208 body = [s for s in body if s is not None]
209 return body
210
211
212def generateIf(statement):

Callers 7

generateIfFunction · 0.85
generateWhileFunction · 0.85
generateForFunction · 0.85
generateFunctionFunction · 0.85
splootFromPythonFunction · 0.85
splootNodeFromPythonFunction · 0.85
splootNodesFromPythonFunction · 0.85

Calls 1

generateSplootStatementFunction · 0.85

Tested by

no test coverage detected