(fn, output)
| 1874 | } |
| 1875 | |
| 1876 | function maybeIterator(fn, output) { |
| 1877 | if (!fn.generator) return output; |
| 1878 | if (!fn.computeRet) { // Reuse iterator objects for non-computed return types |
| 1879 | if (fn.generator === true) fn.generator = generatorResult(fn.yieldval, output, fn.async); |
| 1880 | return fn.generator; |
| 1881 | } |
| 1882 | return generatorResult(fn.yieldval, output, fn.async); |
| 1883 | } |
| 1884 | |
| 1885 | function computeReturnType(funcNode, argNodes, scope) { |
| 1886 | var fn = findType(funcNode, scope).getFunctionType(); |
no test coverage detected
searching dependent graphs…