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

Method fetchBuiltins

static/widgets/load-save.ts:77–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 private async fetchBuiltins(): Promise<SourceApiEntry[]> {
78 return new Promise(resolve => {
79 $.getJSON(window.location.origin + this.base + 'source/builtin/list', resolve);
80 });
81 }
82
83 public initializeIfNeeded() {
84 if (this.modal === null || this.modal.length === 0) {

Callers 2

constructorMethod · 0.95
populateBuiltinsMethod · 0.95

Calls 1

getJSONMethod · 0.65

Tested by

no test coverage detected