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

Function appendBinaryOperatorExpression

python/convert_ast.py:106–109  ·  view source on GitHub ↗
(binOp, tokens)

Source from the content-addressed store, hash-verified

104 raise Exception(f'Unsupported constant: {const.value}')
105
106def appendBinaryOperatorExpression(binOp, tokens):
107 generateExpression(binOp.left, tokens)
108 tokens.append(SplootNode('PYTHON_BINARY_OPERATOR', {}, {'operator': convertOperator(binOp.op)}))
109 generateExpression(binOp.right, tokens)
110
111def appendBooleanOperatorExpression(boolOp, tokens):
112 generateExpression(boolOp.values[0], tokens)

Callers 1

generateExpressionTokensFunction · 0.85

Calls 3

generateExpressionFunction · 0.85
convertOperatorFunction · 0.85
SplootNodeFunction · 0.70

Tested by

no test coverage detected