(func)
| 275 | return [SplootNode('PY_IDENTIFIER', {}, {'identifier': a.arg}) for a in arguments.args] |
| 276 | |
| 277 | def generateFunction(func): |
| 278 | return SplootNode('PYTHON_FUNCTION_DECLARATION', { |
| 279 | 'decorators': [SplootNode('PY_DECORATOR', {'expression': [generateExpression(d)]}) for d in func.decorator_list], |
| 280 | 'identifier': [SplootNode('PY_IDENTIFIER', {}, {'identifier': func.name})], |
| 281 | 'params': generateArgs(func.args), |
| 282 | 'body': getBlockBodyFromStatements(func.body), |
| 283 | }, {'id': None}) |
| 284 | |
| 285 | def generateSplootStatement(statement): |
| 286 | global lineno |
no test coverage detected