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

Function getRustMirViewWith

static/components.ts:672–692  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    rustMirOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

670
671/** Get a rust mir view with the given configuration. */
672export function getRustMirViewWith(
673 id: number,
674 source: string,
675 rustMirOutput: unknown,
676 compilerName: string,
677 editorid: number,
678 treeid: number,
679): ComponentConfig<typeof RUST_MIR_VIEW_COMPONENT_NAME> {
680 return {
681 type: 'component',
682 componentName: RUST_MIR_VIEW_COMPONENT_NAME,
683 componentState: {
684 id,
685 source,
686 rustMirOutput,
687 compilerName,
688 editorid,
689 treeid,
690 },
691 };
692}
693
694/** Get an empty haskell core view component. */
695export function getHaskellCoreView(): ComponentConfig<typeof HASKELL_CORE_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected