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

Function getExecutor

static/components.ts:132–143  ·  view source on GitHub ↗
(editorId: number, lang: string)

Source from the content-addressed store, hash-verified

130
131/** Get an empty executor component. */
132export function getExecutor(editorId: number, lang: string): ComponentConfig<typeof EXECUTOR_COMPONENT_NAME> {
133 return {
134 type: 'component',
135 componentName: EXECUTOR_COMPONENT_NAME,
136 componentState: {
137 source: editorId,
138 lang,
139 compilationPanelShown: true,
140 compilerOutShown: true,
141 },
142 };
143}
144
145/** Get a compiler component with the given configuration. */
146export function getExecutorWith(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected