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

Function getLeanCViewWith

static/components.ts:831–851  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    leanCOutput: ResultLine[] | undefined,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

829
830/** Get a Lean C view with the given configuration. */
831export function getLeanCViewWith(
832 id: number,
833 source: string,
834 leanCOutput: ResultLine[] | undefined,
835 compilerName: string,
836 editorid: number,
837 treeid: number,
838): ComponentConfig<typeof LEAN_C_VIEW_COMPONENT_NAME> {
839 return {
840 type: 'component',
841 componentName: LEAN_C_VIEW_COMPONENT_NAME,
842 componentState: {
843 id,
844 source,
845 leanCOutput,
846 compilerName,
847 editorid,
848 treeid,
849 },
850 };
851}
852
853/** Get an empty gnat debug tree view component. */
854export function getGnatDebugTreeView(): ComponentConfig<typeof GNAT_DEBUG_TREE_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected