MCPcopy Index your code
hub / github.com/codeaashu/claude-code / toArray

Method toArray

src/server/web/public/terminal.js:5176–5184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5174 }
5175 clone() {
5176 const e3 = new s2(this.maxLength, this.maxSubParamsLength);
5177 return e3.params.set(this.params), e3.length = this.length, e3._subParams.set(this._subParams), e3._subParamsLength = this._subParamsLength, e3._subParamsIdx.set(this._subParamsIdx), e3._rejectDigits = this._rejectDigits, e3._rejectSubDigits = this._rejectSubDigits, e3._digitIsSub = this._digitIsSub, e3;
5178 }
5179 toArray() {
5180 const e3 = [];
5181 for (let t3 = 0; t3 < this.length; ++t3) {
5182 e3.push(this.params[t3]);
5183 const i3 = this._subParamsIdx[t3] >> 8, s3 = 255 & this._subParamsIdx[t3];
5184 s3 - i3 > 0 && e3.push(Array.prototype.slice.call(this._subParams, i3, s3));
5185 }
5186 return e3;
5187 }

Callers 6

BylineFunction · 0.45
OrderedListComponentFunction · 0.45
constructorMethod · 0.45
registerCsiHandlerMethod · 0.45
registerDcsHandlerMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected