MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getNextCompilerId

Method getNextCompilerId

lib/clientstate.ts:389–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387 }
388
389 getNextCompilerId() {
390 let nextId = 1;
391 for (const session of this.sessions) {
392 for (const compiler of session.compilers) {
393 if (compiler._internalid && compiler._internalid >= nextId) {
394 nextId = compiler._internalid + 1;
395 }
396 }
397 }
398 return nextId;
399 }
400
401 numberCompilersIfNeeded(session: ClientStateSession, startAt?: number) {
402 let id = startAt;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected