MCPcopy
hub / github.com/di-sukharev/opencommit / shift

Method shift

out/cli.cjs:8202–8209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8200 16383 === t2._elements.length && (r3 = { _elements: [], _next: void 0 }), t2._elements.push(e3), r3 !== t2 && (this._back = r3, t2._next = r3), ++this._size;
8201 }
8202 shift() {
8203 const e3 = this._front;
8204 let t2 = e3;
8205 const r3 = this._cursor;
8206 let o3 = r3 + 1;
8207 const n2 = e3._elements, a4 = n2[r3];
8208 return 16384 === o3 && (t2 = e3._next, o3 = 0), --this._size, this._cursor = o3, e3 !== t2 && (this._front = t2), n2[r3] = void 0, a4;
8209 }
8210 forEach(e3) {
8211 let t2 = this._cursor, r3 = this._front, o3 = r3._elements;
8212 for (; !(t2 === o3.length && void 0 === r3._next || t2 === o3.length && (r3 = r3._next, o3 = r3._elements, t2 = 0, 0 === o3.length)); ) e3(o3[t2]), ++t2;

Callers 15

G6Function · 0.45
se2Function · 0.45
_eFunction · 0.45
weFunction · 0.45
CeFunction · 0.45
WeFunction · 0.45
dtFunction · 0.45
enqueueMethod · 0.45
DequeueValueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected