A top-level function (F fqn flags) or a member of the type above it (K kind * name) declares one name; reported as a reference spells it, the last * segment of a qualified name. A type, a supertype, a namespace block or a * use import changes how others resolve: GLOBAL. */
| 959 | * segment of a qualified name. A type, a supertype, a namespace block or a |
| 960 | * use import changes how others resolve: GLOBAL. */ |
| 961 | static bool pr_removable(const char *line, size_t len, const char **name, size_t *nlen) { |
| 962 | if (len <= PAIR_LEN || line[1] != '\t') { |
| 963 | return false; |
| 964 | } |
| 965 | if (line[0] == 'K') { |
| 966 | return cbm_doclinks_scope_field(line, len, PAIR_LEN, name, nlen); |
| 967 | } |
| 968 | if (line[0] != 'F' || !cbm_doclinks_scope_field(line, len, 1, name, nlen)) { |
| 969 | return false; |
| 970 | } |
| 971 | for (size_t i = *nlen; i > 0; i--) { |
| 972 | if ((*name)[i - SKIP_ONE] == '\\') { |
| 973 | *nlen -= i; |
| 974 | *name += i; |
| 975 | break; |
| 976 | } |
| 977 | } |
| 978 | return true; |
| 979 | } |
| 980 | |
| 981 | static int pr_scope_delta(const char *stored, const char *fresh, cbm_doclink_name_fn removed, |
| 982 | void *ud) { |
nothing calls this directly
no test coverage detected