True when `qn` is, or lies under, the target of a class `use` the pipeline * left unresolved: a type outside the project (cross-file mode only). */
| 256 | /* True when `qn` is, or lies under, the target of a class `use` the pipeline |
| 257 | * left unresolved: a type outside the project (cross-file mode only). */ |
| 258 | static bool php_external_qn(const PHPLSPContext *ctx, const char *qn) { |
| 259 | for (int i = 0; qn && i < ctx->external_use_count; i++) { |
| 260 | size_t n = strlen(ctx->external_use_qns[i]); |
| 261 | if (strncmp(qn, ctx->external_use_qns[i], n) == 0 && (qn[n] == '\0' || qn[n] == '.')) |
| 262 | return true; |
| 263 | } |
| 264 | return false; |
| 265 | } |
| 266 | |
| 267 | /* Try to find a registered type for a "namespaced" QN. |
| 268 | * |
no outgoing calls
no test coverage detected