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

Function getCompilerForTree

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

Source from the content-addressed store, hash-verified

118
119/** Get a compiler for a tree mode component. */
120export function getCompilerForTree(treeId: number, lang: string): ComponentConfig<typeof COMPILER_COMPONENT_NAME> {
121 return {
122 type: 'component',
123 componentName: COMPILER_COMPONENT_NAME,
124 componentState: {
125 tree: treeId,
126 lang,
127 },
128 };
129}
130
131/** Get an empty executor component. */
132export function getExecutor(editorId: number, lang: string): ComponentConfig<typeof EXECUTOR_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected