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. */
| 18 | * If so, all the entities it contains should be mapped, |
| 19 | * otherwise only referenced entities should be mapped. */ |
| 20 | static 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. |
| 26 | static inline void _AST_UpdateRefMap(AST *ast, const char *name) { |
no outgoing calls
no test coverage detected