MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / getCompilers

Method getCompilers

lib/compiler-finder.ts:417–426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415 }
416
417 async getCompilers() {
418 const compilers: Promise<PreliminaryCompilerInfo[]>[] = [];
419 for (const [langId, exs] of Object.entries(this.getExes())) {
420 for (const exe of exs) {
421 compilers.push(this.recurseGetCompilers(langId, exe, this.compilerProps));
422 }
423 }
424 const completeCompilers = await Promise.all(compilers);
425 return completeCompilers.flat();
426 }
427
428 ensureDistinct(compilers: CompilerInfo[]) {
429 const ids: Record<string, CompilerInfo[]> = {};

Callers 2

findMethod · 0.95

Calls 3

getExesMethod · 0.95
recurseGetCompilersMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected