(func_node)
| 390 | defaults=[]) |
| 391 | |
| 392 | def generateFunctionStatement(func_node): |
| 393 | nameIdentifier = func_node['childSets']['identifier'][0]['properties']['identifier'] |
| 394 | statements = getStatementsFromBlock(func_node["childSets"]["body"]) |
| 395 | decorators = [] |
| 396 | if 'decorators' in func_node['childSets']: |
| 397 | decorators = [generateAstExpression(dec['childSets']['expression'][0]) for dec in func_node['childSets']['decorators']] |
| 398 | funcArgs = generateFunctionArguments(func_node['childSets']['params']) |
| 399 | return [ast.FunctionDef(nameIdentifier, funcArgs, statements, decorators)] |
| 400 | |
| 401 | |
| 402 | def generateReturnStatement(return_node): |
no test coverage detected