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

Function resolveSymbolAt

graph-ui/src/provider/closure.test.ts:127–144  ·  view source on GitHub ↗
(
            _root: string,
            filePath: string,
            line: number,
            _opts?: ProviderQueryOptions,
        )

Source from the content-addressed store, hash-verified

125 };
126 },
127 async resolveSymbolAt(
128 _root: string,
129 filePath: string,
130 line: number,
131 _opts?: ProviderQueryOptions,
132 ): Promise<ResolveResult> {
133 resolveCalls.push(`${filePath}:${line}`);
134 if (unresolvable.has(filePath)) {
135 return { kind: 'file-not-indexed', filePath };
136 }
137 const name = Object.keys(DECLARED).find(
138 (key) => DECLARED[key].file === filePath && DECLARED[key].line === line,
139 );
140 if (name === undefined) {
141 return { kind: 'no-symbol-at-line', filePath };
142 }
143 return { kind: 'ok', symbol: symbolNamed(name), enclosing: [] };
144 },
145 };
146}
147

Callers

nothing calls this directly

Calls 3

keysMethod · 0.80
symbolNamedFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected