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

Function callsFrom

__tests__/extraction.test.ts:11906–11910  ·  view source on GitHub ↗
(result: ReturnType<typeof extractFromSource>, fromId: string | undefined)

Source from the content-addressed store, hash-verified

11904
11905 describe('Calls in tag expressions outside <cfscript>/<cfquery> (#2091)', () => {
11906 const callsFrom = (result: ReturnType<typeof extractFromSource>, fromId: string | undefined) =>
11907 result.unresolvedReferences
11908 .filter((r) => r.fromNodeId === fromId && (r.referenceKind === 'calls' || r.referenceKind === 'instantiates'))
11909 .map((r) => `${r.referenceKind === 'instantiates' ? 'new ' : ''}${r.referenceName}@${r.line}`)
11910 .sort();
11911
11912 it('should extract calls in <cfset>, <cfif>, <cfelseif> and <cfreturn>, attributed to the enclosing method', () => {
11913 const code = `<cfcomponent>

Callers 1

extraction.test.tsFile · 0.70

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected