* Gets the *yield*, *return*, and *next* types of an `Iterator`-like or `AsyncIterator`-like * type from its members. * * If we successfully found the *yield*, *return*, and *next* types, an `IterationTypes` * record is returned. Otherwise, `noIterationTypes` is r
(type, resolver, errorNode)
| 83583 | * `getIterationTypesOfIterator` instead. |
| 83584 | */ |
| 83585 | function getIterationTypesOfIteratorSlow(type, resolver, errorNode) { |
| 83586 | var iterationTypes = combineIterationTypes([ |
| 83587 | getIterationTypesOfMethod(type, resolver, "next", errorNode), |
| 83588 | getIterationTypesOfMethod(type, resolver, "return", errorNode), |
| 83589 | getIterationTypesOfMethod(type, resolver, "throw", errorNode), |
| 83590 | ]); |
| 83591 | return setCachedIterationTypes(type, resolver.iteratorCacheKey, iterationTypes); |
| 83592 | } |
| 83593 | /** |
| 83594 | * Gets the requested "iteration type" from a type that is either `Iterable`-like, `Iterator`-like, |
| 83595 | * `IterableIterator`-like, or `Generator`-like (for a non-async generator); or `AsyncIterable`-like, |
no test coverage detected
searching dependent graphs…