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

Function generateList

python/text_generator.py:45–48  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

43 return memberExpr
44
45def generateList(node):
46 els = [generateAstExpression(el) for el in node['childSets']['elements']]
47 els = [el for el in els if el is not None]
48 return ast.List(els, ast.Load())
49
50def generateTuple(node):
51 els = [generateAstExpression(el) for el in node['childSets']['elements']]

Callers 1

Calls 1

generateAstExpressionFunction · 0.70

Tested by

no test coverage detected