MCPcopy
hub / github.com/webpack/webpack / next

Method next

lib/util/TupleSet.js:147–165  ·  lib/util/TupleSet.js::TupleSet.next
(it)

Source from the content-addressed store, hash-verified

145 * @returns {boolean} result
146 */
147 const next = (it) => {
148 const result = it.next();
149 if (result.done) {
150 if (iteratorStack.length === 0) return false;
151 tuple.pop();
152 return next(
153 /** @type {IteratorStack<T, V>} */
154 (iteratorStack.pop())
155 );
156 }
157 const [key, value] = result.value;
158 iteratorStack.push(it);
159 tuple.push(key);
160 if (value instanceof Set) {
161 currentSetIterator = value[Symbol.iterator]();
162 return true;
163 }
164 return next(value[Symbol.iterator]());
165 };
166
167 next(this._map[Symbol.iterator]());
168

Callers 7

resultFunction · 0.45
dequeueMethod · 0.45
dequeueMethod · 0.45
runtimeEqualFunction · 0.45
firstFunction · 0.45
itemsToRegexpFunction · 0.45
[Symbol.iterator]Method · 0.45

Calls 4

popMethod · 0.80
nextFunction · 0.50
pushMethod · 0.45
concatMethod · 0.45

Tested by

no test coverage detected