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

Method setSource

static/panes/editor.ts:306–312  ·  view source on GitHub ↗
(newSource: string)

Source from the content-addressed store, hash-verified

304 }
305
306 setSource(newSource: string): void {
307 this.updateSource(newSource);
308
309 if (window.compilerExplorerOptions.mobileViewer) {
310 $(this.domRoot.find('.monaco-placeholder textarea')).hide();
311 }
312 }
313
314 onNewSource(editorId: number, newSource: string): void {
315 if (this.id === editorId) {

Callers 4

constructorMethod · 0.95
onNewSourceMethod · 0.95
initLoadSaverMethod · 0.95
updateEditorCodeMethod · 0.95

Calls 3

updateSourceMethod · 0.95
findMethod · 0.80
hideMethod · 0.45

Tested by

no test coverage detected