MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / identityOnly

Method identityOnly

src/mcp/tools.ts:3827–3833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3825 * Same distinction, same test, as the gather path's `isPreciseToken`.
3826 */
3827 const identityOnly = () => (preciseNamedIds.size === 0 ? EMPTY : {
3828 text: '',
3829 pathNodeIds: new Set<string>(),
3830 namedNodeIds: new Set<string>(preciseNamedIds),
3831 uniqueNamedNodeIds: new Set<string>([...uniqueNamedNodeIds].filter((id) => preciseNamedIds.has(id))),
3832 spineCallSites: new Map<string, number>(),
3833 });
3834 if (named.size < 2) {
3835 // <2 CALLABLES resolved. Two recoveries before giving up: (1) synthesized
3836 // edges among named CONSTANT/VARIABLE endpoints — RTK thunk→thunk is

Callers

nothing calls this directly

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected