MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / funcName

Function funcName

src/context/data-flow.ts:59–63  ·  view source on GitHub ↗

Extract the function name from a function-ish node.

(node: any, source: string)

Source from the content-addressed store, hash-verified

57
58/** Extract the function name from a function-ish node. */
59function funcName(node: any, source: string): string {
60 const n = node.childForFieldName?.('name');
61 if (n) return source.slice(n.startIndex, n.endIndex);
62 return '<anonymous>';
63}
64
65/** Collect identifier strings declared as parameters within `node`. */
66function collectParams(node: any, source: string, into: Set<string>): void {

Callers 1

analyzeFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected