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

Method createExecutor

static/panes/compiler.ts:736–758  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

734 };
735
736 const createExecutor = () => {
737 const currentState = this.getCurrentState();
738 const editorId = currentState.source;
739 const treeId = currentState.tree;
740 const langId = currentState.lang;
741 const compilerId = currentState.compiler;
742 const libs =
743 this.libsWidget?.getLibsInUse().map(item => ({
744 name: item.libId,
745 ver: item.versionId,
746 })) ?? [];
747
748 return Components.getExecutorWith(
749 editorId ?? 0,
750 langId ?? '',
751 compilerId,
752 libs,
753 currentState.options,
754 treeId ?? 0,
755 currentState.overrides,
756 currentState.runtimeTools,
757 );
758 };
759
760 const newPaneDropdown = this.domRoot.find('.new-pane-dropdown');
761 const hidePaneAdder = () => {

Callers

nothing calls this directly

Calls 2

getCurrentStateMethod · 0.95
getLibsInUseMethod · 0.80

Tested by

no test coverage detected