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

Function _shouldForceMapping

src/ast/ast_build_reference_map.c:20–23  ·  view source on GitHub ↗

Check if a path is a named path or shortest path. * If so, all the entities it contains should be mapped, * otherwise only referenced entities should be mapped. */

Source from the content-addressed store, hash-verified

18 * If so, all the entities it contains should be mapped,
19 * otherwise only referenced entities should be mapped. */
20static inline bool _shouldForceMapping(const cypher_astnode_t *path) {
21 const cypher_astnode_type_t type = cypher_astnode_type(path);
22 return (type == CYPHER_AST_NAMED_PATH || type == CYPHER_AST_SHORTEST_PATH);
23}
24
25// Adds an identifier or an alias to the reference map.
26static inline void _AST_UpdateRefMap(AST *ast, const char *name) {

Calls

no outgoing calls

Tested by

no test coverage detected