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

Function _AR_EXP_EvaluateVariadic

src/arithmetic/arithmetic_expression.c:536–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536static AR_EXP_Result _AR_EXP_EvaluateVariadic(AR_ExpNode *node, const Record r, SIValue *result) {
537 // Make sure entity record index is known.
538 if(node->operand.variadic.entity_alias_idx == IDENTIFIER_NOT_FOUND) {
539 if(!_AR_EXP_UpdateEntityIdx(&node->operand, r)) return EVAL_ERR;
540 }
541
542 int aliasIdx = node->operand.variadic.entity_alias_idx;
543
544 // the value was not created here; share with the caller
545 *result = SI_ShareValue(Record_Get(r, aliasIdx));
546
547 return EVAL_OK;
548}
549
550static AR_EXP_Result _AR_EXP_EvaluateParam
551(

Callers 1

_AR_EXP_EvaluateFunction · 0.85

Calls 3

_AR_EXP_UpdateEntityIdxFunction · 0.85
SI_ShareValueFunction · 0.85
Record_GetFunction · 0.85

Tested by

no test coverage detected