MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / getCallArgs

Function getCallArgs

masfactory-visualizer/src/parser/declarativeParser.ts:100–104  ·  view source on GitHub ↗
(callNode: TSNode)

Source from the content-addressed store, hash-verified

98}
99
100function getCallArgs(callNode: TSNode): TSNode[] {
101 const argsNode = callNode.childForFieldName('arguments');
102 if (!argsNode) {return [];}
103 return argsNode.namedChildren.filter((n): n is TSNode => !!n && n.type !== 'comment');
104}
105
106function getKeywordArgMap(args: TSNode[], code: string): Map<string, TSNode> {
107 const map = new Map<string, TSNode>();

Callers 2

parseNodeTypeExpressionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected