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

Function chainsFrom

__tests__/pascal-chained-calls.test.ts:90–92  ·  view source on GitHub ↗

* The outer methods of chains through members and calls, which resolution * types link by link (#2550): `{args}.A.B.C` for one written with its * arguments, `{call}.A.B.C` for a statement.

(code: string, qualifiedName: string)

Source from the content-addressed store, hash-verified

88 * arguments, `{call}.A.B.C` for a statement.
89 */
90function chainsFrom(code: string, qualifiedName: string): string[] {
91 return refsFrom(code, qualifiedName, 'references').filter((r) => /^\{(?:args|call)[@}]/.test(r));
92}
93
94async function withIndex(code: string, check: (cg: CodeGraph) => void): Promise<void> {
95 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-pascal-chain-'));

Callers 1

Calls 1

refsFromFunction · 0.70

Tested by

no test coverage detected