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

Function methodNodes

__tests__/mybatis-extractor-robustness.test.ts:15–16  ·  view source on GitHub ↗
(xml: string, file = 'FooMapper.xml')

Source from the content-addressed store, hash-verified

13// (no parser dependency).
14
15const methodNodes = (xml: string, file = 'FooMapper.xml') =>
16 extractFromSource(file, xml).nodes.filter((n) => n.kind === 'method');
17
18const methodNames = (xml: string, file = 'FooMapper.xml') =>
19 methodNodes(xml, file).map((n) => n.qualifiedName);

Callers 2

methodNamesFunction · 0.85

Calls 1

extractFromSourceFunction · 0.90

Tested by

no test coverage detected