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

Method doLoad

static/widgets/load-save.ts:97–105  ·  view source on GitHub ↗
(element: SourceApiEntry)

Source from the content-addressed store, hash-verified

95 }
96
97 private doLoad(element: SourceApiEntry) {
98 $.getJSON(
99 window.location.origin + this.base + 'source/builtin/load/' + element.lang + '/' + element.file,
100 response => this.onLoad(response.file),
101 );
102 if (this.modal) {
103 BootstrapUtils.hideModal(this.modal);
104 }
105 }
106
107 private static populate(root: JQuery, list: PopulateItem[]) {
108 root.find('li:not(.template)').remove();

Callers 1

populateBuiltinsMethod · 0.95

Calls 2

onLoadMethod · 0.95
getJSONMethod · 0.65

Tested by

no test coverage detected