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

Function _Validate_projection

src/ast/ast_validations.c:509–527  ·  view source on GitHub ↗

validate a projection

Source from the content-addressed store, hash-verified

507
508// validate a projection
509static VISITOR_STRATEGY _Validate_projection
510(
511 const cypher_astnode_t *n, // ast-node
512 bool start, // first traversal
513 ast_visitor *visitor // visitor
514) {
515 validations_ctx *vctx = AST_Visitor_GetContext(visitor);
516
517 // we enter ONLY when start=true, so no check is needed
518
519 const cypher_astnode_t *exp = cypher_ast_projection_get_expression(n);
520 AST_Visitor_visit(exp, visitor);
521 if(ErrorCtx_EncounteredError()) {
522 return VISITOR_BREAK;
523 }
524
525 // do not traverse children
526 return VISITOR_CONTINUE;
527}
528
529// validate a function-call
530static AST_Validation _ValidateFunctionCall

Callers

nothing calls this directly

Calls 3

AST_Visitor_GetContextFunction · 0.85
AST_Visitor_visitFunction · 0.85

Tested by

no test coverage detected