MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / AR_EXP_ContainsVariadic

Function AR_EXP_ContainsVariadic

src/arithmetic/arithmetic_expression.c:787–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785}
786
787bool AR_EXP_ContainsVariadic(const AR_ExpNode *root) {
788 if(root == NULL) return false;
789 if(AR_EXP_IsOperation(root)) {
790 for(int i = 0; i < root->op.child_count; i++) {
791 if(AR_EXP_ContainsVariadic(root->op.children[i])) return true;
792 }
793 } else if(AR_EXP_IsVariadic(root)) {
794 return true;
795 }
796 return false;
797}
798
799// return type of expression
800// e.g. the expression: `1+3` return type is SI_NUMERIC

Callers 1

_predicateTreeToRangeFunction · 0.85

Calls 2

AR_EXP_IsOperationFunction · 0.85
AR_EXP_IsVariadicFunction · 0.85

Tested by

no test coverage detected