(ast, source)
| 86 | }; |
| 87 | |
| 88 | const onNestedFunction = (ast, source) => { |
| 89 | const argumentNames = []; |
| 90 | for (let i = 0; i < ast.params.length; i++) { |
| 91 | argumentNames.push(ast.params[i].name); |
| 92 | } |
| 93 | const nestedFunction = new FunctionNode(source, Object.assign({}, nodeOptions, { |
| 94 | returnType: null, |
| 95 | ast, |
| 96 | name: ast.id.name, |
| 97 | argumentNames, |
| 98 | lookupReturnType, |
| 99 | lookupFunctionArgumentTypes, |
| 100 | lookupFunctionArgumentName, |
| 101 | lookupFunctionArgumentBitRatio, |
| 102 | needsArgumentType, |
| 103 | assignArgumentType, |
| 104 | triggerImplyArgumentType, |
| 105 | triggerImplyArgumentBitRatio, |
| 106 | onFunctionCall, |
| 107 | })); |
| 108 | nestedFunction.traceFunctionAST(ast); |
| 109 | functionBuilder.addFunctionNode(nestedFunction); |
| 110 | }; |
| 111 | |
| 112 | const nodeOptions = Object.assign({ |
| 113 | isRootKernel: false, |
nothing calls this directly
no test coverage detected