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

Method getCode

src/index.ts:3384–3386  ·  view source on GitHub ↗

* Get the source code for a node * * Reads the file and extracts the code between startLine and endLine. * * @param nodeId - ID of the node * @returns Code string or null if not found

(nodeId: string)

Source from the content-addressed store, hash-verified

3382 * @returns Code string or null if not found
3383 */
3384 async getCode(nodeId: string): Promise<string | null> {
3385 return this.contextBuilder.getCode(nodeId);
3386 }
3387
3388 /**
3389 * Find relevant subgraph for a query

Callers 4

security.test.tsFile · 0.45
extraction.test.tsFile · 0.45
context.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected