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

Function getCompiler

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

Source from the content-addressed store, hash-verified

76
77/** Get an empty compiler component. */
78export function getCompiler(editorId: number, lang: string): ComponentConfig<typeof COMPILER_COMPONENT_NAME> {
79 return {
80 type: 'component',
81 componentName: COMPILER_COMPONENT_NAME,
82 componentState: {
83 source: editorId,
84 lang,
85 },
86 };
87}
88
89/**
90 * Get a compiler component with the given configuration.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected