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

Method findTreeById

lib/clientstate.ts:433–443  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

431 }
432
433 findTreeById(id: number) {
434 for (let idxTree = 0; idxTree < this.trees.length; idxTree++) {
435 const tree = this.trees[idxTree];
436
437 if (tree.id === id) {
438 return tree;
439 }
440 }
441
442 return false;
443 }
444
445 findOrCreateSession(id: number) {
446 let session = this.findSessionById(id);

Callers 1

findOrCreateTreeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected