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

Function AST_ContainsErrors

src/ast/ast_validations.c:2126–2131  ·  view source on GitHub ↗

Checks to see if libcypher-parser reported any errors.

Source from the content-addressed store, hash-verified

2124
2125// Checks to see if libcypher-parser reported any errors.
2126bool AST_ContainsErrors
2127(
2128 const cypher_parse_result_t *result // parse-result checked for errors
2129) {
2130 return cypher_parse_result_nerrors(result) > 0;
2131}
2132
2133/* This function checks for the existence a valid root in the query.
2134 * As cypher_parse_result_t can have multiple roots such as comments,

Callers 2

parse_queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected