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

Method getSource

static/panes/editor.ts:320–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318 }
319
320 getSource(): string | undefined {
321 return this.editor.getModel()?.getValue();
322 }
323
324 getLanguageFromState(state: MonacoPaneState & EditorState): Language | undefined {
325 const langs = languagesService.getLanguagesOrFail();

Callers 12

maybeEmitChangeMethod · 0.95
updateStateMethod · 0.95
getConformanceConfigMethod · 0.95
handleCtrlSMethod · 0.95
doesMatchEditorMethod · 0.95
formatCurrentTextMethod · 0.95
initLoadSaverMethod · 0.95
onLanguageChangeMethod · 0.95
getFileContentsMethod · 0.80
onEditorCloseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected