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

Function getIterationTypesOfGlobalIterableType

test/fixtures/snapshot/typescript.js:83291–83295  ·  view source on GitHub ↗
(globalType, resolver)

Source from the content-addressed store, hash-verified

83289 return getCachedIterationTypes(type, resolver.iterableCacheKey);
83290 }
83291 function getIterationTypesOfGlobalIterableType(globalType, resolver) {
83292 var globalIterationTypes = getIterationTypesOfIterableCached(globalType, resolver) ||
83293 getIterationTypesOfIterableSlow(globalType, resolver, /*errorNode*/ undefined);
83294 return globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes;
83295 }
83296 /**
83297 * Gets the *yield*, *return*, and *next* types of an `Iterable`-like or `AsyncIterable`-like
83298 * type from from common heuristics.

Callers 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…