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

Method getLocalFiles

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

Source from the content-addressed store, hash-verified

57 }
58
59 public static getLocalFiles(): Record<string, string> {
60 return JSON.parse(localStorage.get('files', '{}'));
61 }
62
63 public static setLocalFile(name: string, file: string) {
64 const files = LoadSave.getLocalFiles();

Callers 4

setLocalFileMethod · 0.80
removeLocalFileMethod · 0.80
populateLocalStorageMethod · 0.80

Calls 2

getMethod · 0.65
parseMethod · 0.45

Tested by

no test coverage detected