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

Function method

__tests__/test-request-edges.test.ts:45–49  ·  view source on GitHub ↗
(cg: CodeGraph, name: string)

Source from the content-addressed store, hash-verified

43}
44
45const method = (cg: CodeGraph, name: string): Node => {
46 const n = cg.getNodesByKind('method').find((m) => m.name === name);
47 if (!n) throw new Error(`no method ${name}`);
48 return n;
49};
50
51const SPRING_POM = '<project><dependencies><dependency><artifactId>spring-boot-starter-web</artifactId></dependency></dependencies></project>';
52

Callers 1

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected