| 182 | } |
| 183 | |
| 184 | static const char *find_use(PHPLSPContext *ctx, const char *local_name, int kind) { |
| 185 | for (int i = 0; i < ctx->use_count; i++) { |
| 186 | if ((int)ctx->use_kinds[i] != kind) |
| 187 | continue; |
| 188 | if (strcmp(ctx->use_local_names[i], local_name) == 0) |
| 189 | return ctx->use_target_qns[i]; |
| 190 | } |
| 191 | return NULL; |
| 192 | } |
| 193 | |
| 194 | /* Resolve a class identifier to a fully-qualified registry key. |
| 195 | * - Fully-qualified ("\\Foo\\Bar"): FOO.BAR — strip leading slash. |
no outgoing calls
no test coverage detected