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

Function SplootNode

python/convert_ast.py:34–42  ·  view source on GitHub ↗
(type, childSets={}, properties={}, metadata=None)

Source from the content-addressed store, hash-verified

32 return UNARY_AST_OPERATORS[type(astOp)]
33
34def SplootNode(type, childSets={}, properties={}, metadata=None):
35 node = {
36 "type": type,
37 "childSets": childSets,
38 "properties": properties
39 }
40 if metadata is not None:
41 node["meta"] = metadata
42 return node
43
44def generateAssignmentTargets(targets):
45 if len(targets) != 1:

Callers 15

generateAssignmentFunction · 0.70
generateKeywordArgumentFunction · 0.70
appendCallTokenFunction · 0.70
appendAttributeFunction · 0.70
appendConstantTokenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected