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

Function appendAttribute

python/convert_ast.py:89–92  ·  view source on GitHub ↗
(attrExpr, tokens)

Source from the content-addressed store, hash-verified

87 raise Exception(f'Unsupported Call function expression: {ast.dump(callExpr.func)}')
88
89def appendAttribute(attrExpr, tokens):
90 obj = generateExpressionTokens(attrExpr.value)
91 node = SplootNode('PYTHON_MEMBER', {'object': obj}, {'member': attrExpr.attr})
92 tokens.append(node)
93
94def appendConstantToken(const, tokens):
95 if type(const.value) == str:

Callers 1

generateExpressionTokensFunction · 0.85

Calls 2

generateExpressionTokensFunction · 0.85
SplootNodeFunction · 0.70

Tested by

no test coverage detected