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

Function generateExpression

python/convert_ast.py:202–204  ·  view source on GitHub ↗
(expr, tokens=None)

Source from the content-addressed store, hash-verified

200 return tokens
201
202def generateExpression(expr, tokens=None):
203 tokens = generateExpressionTokens(expr, tokens)
204 return SplootNode("PYTHON_EXPRESSION", {"tokens": tokens})
205
206def getBlockBodyFromStatements(blockStatements):
207 body = [generateSplootStatement(s) for s in blockStatements]

Callers 15

generateAssignmentFunction · 0.85
generateKeywordArgumentFunction · 0.85
appendCallTokenFunction · 0.85
appendListTokenFunction · 0.85
appendTupleTokenFunction · 0.85
appendSetTokenFunction · 0.85
appendDictTokenFunction · 0.85

Calls 2

generateExpressionTokensFunction · 0.85
SplootNodeFunction · 0.70

Tested by

no test coverage detected