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

Function callsFrom

__tests__/objc-super-send.test.ts:69–76  ·  view source on GitHub ↗

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

(file: string)

Source from the content-addressed store, hash-verified

67
68/** `Owner::member` of every call edge out of a file. */
69function callsFrom(file: string): string[] {
70 const ids = cg.getNodesInFile(file).map((n) => n.id);
71 return cg
72 .getOutgoingEdgesFrom(ids)
73 .filter((e) => e.kind === 'calls')
74 .map((e) => cg.getNode(e.target)!.qualifiedName)
75 .sort();
76}
77
78describe('Objective-C messages to super', () => {
79 it('reach the superclass, never the sender itself or an unrelated class', () => {

Callers 1

Calls 4

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

Tested by

no test coverage detected