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

Function stepRefOf

graph-ui/src/pseudocode/pseudocode-builder.ts:571–573  ·  view source on GitHub ↗

* Where a step happens: the call site, in the file of the symbol making the * call. * * Never the callee's declaration. A call to `validateUser` on line 24 of * `userService.ts` is declared on line 19 of `validate.ts`, and both numbers are * true about different files; a step is a thing this sy

(ir: SemanticIR, call: CallSite)

Source from the content-addressed store, hash-verified

569 * are for.
570 */
571function stepRefOf(ir: SemanticIR, call: CallSite): PseudocodeSourceRef | undefined {
572 return call.line === undefined ? undefined : { uri: ir.symbol.uri, line: call.line };
573}
574
575function refOf(file: string | undefined, line: number | undefined): PseudocodeSourceRef | undefined {
576 if (file === undefined || file.length === 0 || line === undefined) {

Callers 1

linesOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected