MCPcopy Create free account
hub / github.com/SplootCode/splootcode / generateFunctionArguments

Function generateFunctionArguments

python/text_generator.py:380–390  ·  view source on GitHub ↗
(arg_list)

Source from the content-addressed store, hash-verified

378 ]
379
380def generateFunctionArguments(arg_list):
381 args = []
382 for param in arg_list:
383 name = param['properties']['identifier']
384 args.append(ast.arg(name))
385 return ast.arguments(
386 posonlyargs=[],
387 args=args,
388 kwonlyargs=[],
389 kw_defaults=[],
390 defaults=[])
391
392def generateFunctionStatement(func_node):
393 nameIdentifier = func_node['childSets']['identifier'][0]['properties']['identifier']

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected