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

Method end

src/server/web/public/terminal.js:5124–5136  ·  view source on GitHub ↗
(e3, t3 = true)

Source from the content-addressed store, hash-verified

5122 -1 === this._id && (this._id = 0), this._id = 10 * this._id + i4 - 48;
5123 }
5124 2 === this._state && i3 - t3 > 0 && this._put(e3, t3, i3);
5125 }
5126 }
5127 end(e3, t3 = true) {
5128 if (0 !== this._state) {
5129 if (3 !== this._state) if (1 === this._state && this._start(), this._active.length) {
5130 let i3 = false, s3 = this._active.length - 1, r2 = false;
5131 if (this._stack.paused && (s3 = this._stack.loopPosition - 1, i3 = t3, r2 = this._stack.fallThrough, this._stack.paused = false), !r2 && false === i3) {
5132 for (; s3 >= 0 && (i3 = this._active[s3].end(e3), true !== i3); s3--) if (i3 instanceof Promise) return this._stack.paused = true, this._stack.loopPosition = s3, this._stack.fallThrough = false, i3;
5133 s3--;
5134 }
5135 for (; s3 >= 0; s3--) if (i3 = this._active[s3].end(false), i3 instanceof Promise) return this._stack.paused = true, this._stack.loopPosition = s3, this._stack.fallThrough = true, i3;
5136 } else this._handlerFb(this._id, "END", e3);
5137 this._active = n, this._id = -1, this._state = 0;
5138 }
5139 }

Callers 11

REPLFunction · 0.45
handleSuccessRedirectMethod · 0.45
handleErrorRedirectMethod · 0.45
handleRedirectMethod · 0.45
validateAndRespondMethod · 0.45
waitForCallbackFunction · 0.45
performMCPOAuthFlowFunction · 0.45
pty-server.tsFile · 0.45
parseMethod · 0.45
resetMethod · 0.45
fetchJSONFunction · 0.45

Calls 1

_startMethod · 0.45

Tested by

no test coverage detected