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

Function AR_EXP_ContainsFunc

src/arithmetic/arithmetic_expression.c:776–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776bool AR_EXP_ContainsFunc(const AR_ExpNode *root, const char *func) {
777 if(root == NULL) return false;
778 if(AR_EXP_IsOperation(root)) {
779 if(strcasecmp(AR_EXP_GetFuncName(root), func) == 0) return true;
780 for(int i = 0; i < root->op.child_count; i++) {
781 if(AR_EXP_ContainsFunc(root->op.children[i], func)) return true;
782 }
783 }
784 return false;
785}
786
787bool AR_EXP_ContainsVariadic(const AR_ExpNode *root) {
788 if(root == NULL) return false;

Callers 2

_FilterTree_ContainsFuncFunction · 0.85
AR_EXP_PerformsDistinctFunction · 0.85

Calls 2

AR_EXP_IsOperationFunction · 0.85
AR_EXP_GetFuncNameFunction · 0.85

Tested by

no test coverage detected