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

Function callsFrom

__tests__/inherited-class-method.test.ts:113–120  ·  view source on GitHub ↗

`Owner::member` of every call edge out of a file.

(file: string)

Source from the content-addressed store, hash-verified

111
112/** `Owner::member` of every call edge out of a file. */
113function callsFrom(file: string): string[] {
114 const ids = cg.getNodesInFile(file).map((n) => n.id);
115 return cg
116 .getOutgoingEdgesFrom(ids)
117 .filter((e) => e.kind === 'calls')
118 .map((e) => cg.getNode(e.target)!.qualifiedName)
119 .sort();
120}
121
122describe('a class method reached through a subclass name', () => {
123 it('Pascal: walks the class(…) heads', () => {

Callers 1

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesInFileMethod · 0.65
getOutgoingEdgesFromMethod · 0.45

Tested by

no test coverage detected