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

Function walk

src/context/data-flow.ts:69–75  ·  view source on GitHub ↗
(n: any)

Source from the content-addressed store, hash-verified

67 const params = node.childForFieldName?.('parameters');
68 if (!params) return;
69 const walk = (n: any) => {
70 if (!n) return;
71 if (n.type === 'identifier' || n.type === 'shorthand_property_identifier_pattern') {
72 into.add(source.slice(n.startIndex, n.endIndex));
73 }
74 for (let i = 0; i < (n.childCount ?? 0); i++) walk(n.child(i));
75 };
76 walk(params);
77}
78

Callers 2

collectParamsFunction · 0.70
analyzeFunctionFunction · 0.70

Calls 5

addMethod · 0.80
childMethod · 0.80
hasMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected