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

Function AR_EXP_Clone

src/arithmetic/arithmetic_expression.c:919–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919AR_ExpNode *AR_EXP_Clone(AR_ExpNode *exp) {
920 if(exp == NULL) return NULL;
921
922 AR_ExpNode *clone = NULL;
923
924 switch(exp->type) {
925 case AR_EXP_OPERAND:
926 clone = _AR_EXP_CloneOperand(exp);
927 break;
928 case AR_EXP_OP:
929 clone = _AR_EXP_CloneOp(exp);
930 break;
931 default:
932 ASSERT(false);
933 break;
934 }
935
936 clone->resolved_name = exp->resolved_name;
937
938 return clone;
939}
940
941static inline void _AR_EXP_FreeOpInternals
942(

Callers 15

_FilterTree_Clone_ExpFunction · 0.85
_FilterTree_Clone_PredFunction · 0.85
UpdateCtx_CloneFunction · 0.85
_AR_EXP_CloneOpFunction · 0.85
ListComprehension_CloneFunction · 0.85
ListReduceCtx_CloneFunction · 0.85
_eval_limitFunction · 0.85
LimitCloneFunction · 0.85
UnwindCloneFunction · 0.85
_eval_skipFunction · 0.85
SkipCloneFunction · 0.85
ValueHashJoinCloneFunction · 0.85

Calls 2

_AR_EXP_CloneOperandFunction · 0.85
_AR_EXP_CloneOpFunction · 0.85

Tested by

no test coverage detected