validate a pattern-path expression
| 918 | |
| 919 | // validate a pattern-path expression |
| 920 | static 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 |
| 940 | static VISITOR_STRATEGY _Validate_named_path |
nothing calls this directly
no test coverage detected