(fn, output)
| 1814 | } |
| 1815 | |
| 1816 | function maybeIterator(fn, output) { |
| 1817 | if (!fn.generator) return output |
| 1818 | if (!fn.computeRet) { // Reuse iterator objects for non-computed return types |
| 1819 | if (fn.generator === true) fn.generator = generatorResult(fn.yieldval, output) |
| 1820 | return fn.generator |
| 1821 | } |
| 1822 | return generatorResult(fn.yieldval, output) |
| 1823 | } |
| 1824 | |
| 1825 | function computeReturnType(funcNode, argNodes, scope) { |
| 1826 | var fn = findType(funcNode, scope).getFunctionType() |
no test coverage detected