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

Function _Validate_pattern_path

src/ast/ast_validations.c:920–937  ·  view source on GitHub ↗

validate a pattern-path expression

Source from the content-addressed store, hash-verified

918
919// validate a pattern-path expression
920static VISITOR_STRATEGY _Validate_pattern_path
921(
922 const cypher_astnode_t *n, // ast-node
923 bool start, // first traversal
924 ast_visitor *visitor // visitor
925) {
926 validations_ctx *vctx = AST_Visitor_GetContext(visitor);
927
928 if(!start) {
929 return VISITOR_CONTINUE;
930 }
931
932 if(vctx->clause == CYPHER_AST_CREATE &&
933 (_Validate_CREATE_Entities(n, vctx->defined_identifiers) == AST_INVALID)) {
934 return VISITOR_BREAK;
935 }
936 return VISITOR_RECURSE;
937}
938
939// validate a named path
940static VISITOR_STRATEGY _Validate_named_path

Callers

nothing calls this directly

Calls 2

AST_Visitor_GetContextFunction · 0.85

Tested by

no test coverage detected