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

Method constructor

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

Source from the content-addressed store, hash-verified

48 private currentLanguage: Language | null;
49
50 constructor() {
51 this.alertSystem = new Alert();
52 this.alertSystem.prefixMessage = 'Load-Saver';
53 this.base = window.httpRoot;
54 this.fetchBuiltins()
55 .then(() => {})
56 .catch(() => {});
57 }
58
59 public static getLocalFiles(): Record<string, string> {
60 return JSON.parse(localStorage.get('files', '{}'));

Callers

nothing calls this directly

Calls 1

fetchBuiltinsMethod · 0.95

Tested by

no test coverage detected