validate a projection
| 507 | |
| 508 | // validate a projection |
| 509 | static 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 |
| 530 | static AST_Validation _ValidateFunctionCall |
nothing calls this directly
no test coverage detected