| 377 | } |
| 378 | |
| 379 | void AST_CollectAliases |
| 380 | ( |
| 381 | const char ***aliases, |
| 382 | const cypher_astnode_t *entity |
| 383 | ) { |
| 384 | if(entity == NULL) return; |
| 385 | |
| 386 | const cypher_astnode_t **identifier_nodes = AST_GetTypedNodes(entity, CYPHER_AST_IDENTIFIER); |
| 387 | uint nodes_count = array_len(identifier_nodes); |
| 388 | for(uint i = 0 ; i < nodes_count; i ++) { |
| 389 | const char *identifier = cypher_ast_identifier_get_name(identifier_nodes[i]); |
| 390 | array_append(*aliases, identifier); |
| 391 | } |
| 392 | |
| 393 | array_free(identifier_nodes); |
| 394 | } |
| 395 | |
| 396 | AST *AST_Build |
| 397 | ( |
no test coverage detected