(session: ClientStateSession, startAt?: number)
| 399 | } |
| 400 | |
| 401 | numberCompilersIfNeeded(session: ClientStateSession, startAt?: number) { |
| 402 | let id = startAt; |
| 403 | let someIdsNeedNumbering = false; |
| 404 | |
| 405 | for (const compiler of session.compilers) { |
| 406 | if (compiler._internalid && id && compiler._internalid >= id) { |
| 407 | id = compiler._internalid + 1; |
| 408 | } else { |
| 409 | someIdsNeedNumbering = true; |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | if (someIdsNeedNumbering) { |
| 414 | for (const compiler of session.compilers) { |
| 415 | if (!compiler._internalid) { |
| 416 | compiler._internalid = id; |
| 417 | if (id) id++; |
| 418 | } |
| 419 | } |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | findSessionById(id: number) { |
| 424 | for (const session of this.sessions) { |
no outgoing calls
no test coverage detected