MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / php_external_qn

Function php_external_qn

internal/cbm/lsp/php_lsp.c:258–265  ·  view source on GitHub ↗

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). */

Source from the content-addressed store, hash-verified

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). */
258static 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 *

Callers 3

lookup_type_with_projectFunction · 0.85
php_receiver_strategyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected