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

Method run

static/widgets/load-save.ts:229–241  ·  view source on GitHub ↗
(onLoad, editorText, currentLanguage: Language)

Source from the content-addressed store, hash-verified

227 }
228
229 public run(onLoad, editorText, currentLanguage: Language) {
230 this.initializeIfNeeded();
231 this.populateLocalStorage();
232 this.setMinimalOptions(editorText, currentLanguage);
233 this.populateLocalHistory();
234 this.onLoadCallback = onLoad;
235 unwrap(this.modal).find('.local-file').attr('accept', currentLanguage.extensions.join(','));
236 this.populateBuiltins().then(() => {
237 if (this.modal) {
238 BootstrapUtils.showModal(this.modal);
239 }
240 });
241 }
242
243 private onSaveToBrowserStorage() {
244 const saveNameValue = unwrapString(this.modal?.find('.save-name').val());

Callers 14

test_triton_wrapperFunction · 0.45
run_git_diffFunction · 0.45
add_compiler_with_wizardFunction · 0.45
run_with_timeoutMethod · 0.45
validate_propertiesMethod · 0.45
fetch_issuesFunction · 0.45
setupButtonsFunction · 0.45
constructorMethod · 0.45
registerEditorActionsMethod · 0.45

Calls 7

initializeIfNeededMethod · 0.95
populateLocalStorageMethod · 0.95
setMinimalOptionsMethod · 0.95
populateLocalHistoryMethod · 0.95
populateBuiltinsMethod · 0.95
findMethod · 0.80
unwrapFunction · 0.50

Tested by 1

test_triton_wrapperFunction · 0.36