The node of a declaration of file `fi`: looked up by qualified name, and * taken only when its label and file are the declaration's (another * definition can own that name: a same-named item of another kind, another * file's module). */
| 3977 | * definition can own that name: a same-named item of another kind, another |
| 3978 | * file's module). */ |
| 3979 | static const cbm_gbuf_node_t *rs_node(const rs_index_t *ix, const cbm_gbuf_t *graph, int fi, |
| 3980 | const char *label, const char *qn) { |
| 3981 | const cbm_gbuf_node_t *n = (label && qn) ? cbm_gbuf_find_by_qn(graph, qn) : NULL; |
| 3982 | if (!n || !n->label || !n->file_path || !rs_is(n->label, label) || |
| 3983 | !rs_is(n->file_path, ix->files[fi].rel_path)) { |
| 3984 | return NULL; |
| 3985 | } |
| 3986 | return n; |
| 3987 | } |
| 3988 | |
| 3989 | static const cbm_gbuf_node_t *rs_decl_node(const rs_index_t *ix, const cbm_gbuf_t *graph, int fi, |
| 3990 | char label, const char *suffix) { |
no test coverage detected