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

Function callsOf

__tests__/vbnet-std-methods.test.ts:58–65  ·  view source on GitHub ↗

`Owner::member` of every call edge out of one method.

(qualifiedName: string)

Source from the content-addressed store, hash-verified

56
57/** `Owner::member` of every call edge out of one method. */
58function callsOf(qualifiedName: string): string[] {
59 const from = cg.getNodesInFile('Audio/AudioProfile.vb').find((n) => n.qualifiedName === qualifiedName)!;
60 return cg
61 .getOutgoingEdgesFrom([from.id])
62 .filter((e) => e.kind === 'calls')
63 .map((e) => cg.getNode(e.target)!.qualifiedName)
64 .sort();
65}
66
67describe('VB.NET standard-library method names', () => {
68 it('are not a project method on a receiver that does not name its owner', () => {

Callers 1

Calls 4

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

Tested by

no test coverage detected