visit a binary operator, break if it is unsupported
| 1998 | |
| 1999 | // visit a binary operator, break if it is unsupported |
| 2000 | static 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 |
| 2017 | static AST_Validation _ValidateScopes |
nothing calls this directly
no test coverage detected