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

Function csharp_site_parent

internal/cbm/extract_usages.c:1499–1505  ·  view source on GitHub ↗

Direct identifiers and direct, statically-named TS member values passed as * arguments are narrow syntactic candidates only. A language LSP must still * prove one target at this exact occurrence before the graph upgrades USAGE to * CALL_REFERENCE; unresolved, reassigned, and composite expressions stay USAGE. */ One step up from `site`, on the walk cursor when the caller has one. Every * other

Source from the content-addressed store, hash-verified

1497 * deadline used to cut off mid-walk, so the slow path and the nondeterminism
1498 * it forced were the same defect seen from two ends. */
1499static bool csharp_site_parent(TSTreeCursor *cursor, TSNode site, TSNode *parent,
1500 const char **field) {
1501 if (!cursor) {
1502 usage_slow_parent_fallback_test_note();
1503 }
1504 return occurrence_parent(cursor, site, parent, field);
1505}
1506
1507static TSNode csharp_callable_value_site(TSNode node, TSNode parent, const char *parent_field,
1508 TSTreeCursor *cursor) {

Callers 1

Calls 2

occurrence_parentFunction · 0.85

Tested by

no test coverage detected