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

Function find_use

internal/cbm/lsp/php_lsp.c:184–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static 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.

Callers 3

php_resolve_class_nameFunction · 0.85
eval_function_call_typeFunction · 0.85
resolve_function_callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected