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

Function _visit_binary_op

src/ast/ast_validations.c:2000–2014  ·  view source on GitHub ↗

visit a binary operator, break if it is unsupported

Source from the content-addressed store, hash-verified

1998
1999// visit a binary operator, break if it is unsupported
2000static VISITOR_STRATEGY _visit_binary_op
2001(
2002 const cypher_astnode_t *n, // ast-node
2003 bool start, // first traversal
2004 ast_visitor *visitor // visitor
2005) {
2006 const cypher_operator_t *op = cypher_ast_binary_operator_get_operator(n);
2007 if(op == CYPHER_OP_SUBSCRIPT ||
2008 op == CYPHER_OP_MAP_PROJECTION ||
2009 op == CYPHER_OP_REGEX) {
2010 Error_UnsupportedASTOperator(op);
2011 return VISITOR_BREAK;
2012 }
2013 return VISITOR_RECURSE;
2014}
2015
2016// validate a query
2017static AST_Validation _ValidateScopes

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected