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

Function getExecutorForTree

static/components.ts:175–186  ·  view source on GitHub ↗
(treeId: number, lang: string)

Source from the content-addressed store, hash-verified

173
174/** Get an executor for a tree mode component. */
175export function getExecutorForTree(treeId: number, lang: string): ComponentConfig<typeof EXECUTOR_COMPONENT_NAME> {
176 return {
177 type: 'component',
178 componentName: EXECUTOR_COMPONENT_NAME,
179 componentState: {
180 tree: treeId,
181 lang,
182 compilationPanelShown: true,
183 compilerOutShown: true,
184 },
185 };
186}
187
188/**
189 * Get an empty editor component.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected