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

Function ctxWithLines

__tests__/resolution.test.ts:2482–2492  ·  view source on GitHub ↗
(lines: string[])

Source from the content-addressed store, hash-verified

2480 log: [logMethod, otherLog],
2481 };
2482 const ctxWithLines = (lines: string[]): ResolutionContext => ({
2483 getNodesInFile: () => [],
2484 getNodesByName: (name) => byName[name] ?? [],
2485 getNodesByQualifiedName: () => [],
2486 getNodesByKind: () => [],
2487 fileExists: () => false,
2488 readFile: () => null,
2489 getFileLines: () => lines,
2490 getProjectRoot: () => '',
2491 getAllFiles: () => [],
2492 });
2493 const ref: UnresolvedRef = {
2494 fromNodeId: 'caller', referenceName: 'lg.log', referenceKind: 'calls',
2495 line: 1, column: 0, filePath: 'svc.ts', language: 'typescript',

Callers 1

resolution.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected