MCPcopy Index your code
hub / github.com/nodejs/node / getIterationTypesOfIteratorSlow

Function getIterationTypesOfIteratorSlow

test/fixtures/snapshot/typescript.js:83585–83592  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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,

Callers 2

Calls 3

combineIterationTypesFunction · 0.85
setCachedIterationTypesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…