MCPcopy
hub / github.com/ether/etherpad / next

Method next

src/static/js/OpIter.ts:38–46  ·  view source on GitHub ↗

* Returns the next operation object and advances the iterator. * * Note: This does NOT implement the ECMAScript iterator protocol. * * @param {Op} [opOut] - Deprecated. Operation object to recycle for the return value. * @returns {Op} The next operation, or an operation with a falsy `

(opOut: Op = new Op())

Source from the content-addressed store, hash-verified

36 * no more operations.
37 */
38 next(opOut: Op = new Op()): Op {
39 if (this.hasNext()) {
40 copyOp(this._next.value!, opOut);
41 this._next = this.gen.next();
42 } else {
43 clearOp(opOut);
44 }
45 return opOut;
46 }
47}

Callers 15

constructorMethod · 0.45
linestylefilter.tsFile · 0.45
goNextOpFunction · 0.45
recolorLinesInRangeFunction · 0.45
observeChangesAroundNodeFunction · 0.45
insertDomLinesFunction · 0.45
domAndRepSpliceFunction · 0.45
applyZipFunction · 0.45
mutateAttributionLinesFunction · 0.45
nextMutOpFunction · 0.45
subattributionFunction · 0.45
doCsOpFunction · 0.45

Calls 3

hasNextMethod · 0.95
copyOpFunction · 0.90
clearOpFunction · 0.90

Tested by

no test coverage detected