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

Function getHaskellCmmViewWith

static/components.ts:767–787  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    haskellCmmOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

765}
766
767export function getHaskellCmmViewWith(
768 id: number,
769 source: string,
770 haskellCmmOutput: unknown,
771 compilerName: string,
772 editorid: number,
773 treeid: number,
774): ComponentConfig<typeof HASKELL_CMM_VIEW_COMPONENT_NAME> {
775 return {
776 type: 'component',
777 componentName: HASKELL_CMM_VIEW_COMPONENT_NAME,
778 componentState: {
779 id,
780 source,
781 haskellCmmOutput,
782 compilerName,
783 editorid,
784 treeid,
785 },
786 };
787}
788
789/** Get an empty Yul view component. */
790export function getYulView(): ComponentConfig<typeof YUL_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected