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

Function getOptPipelineViewWith

static/components.ts:637–660  ·  view source on GitHub ↗
(
    id: number,
    lang: string,
    compilerId: string,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

635
636/** Get a opt pipeline view with the given configuration. */
637export function getOptPipelineViewWith(
638 id: number,
639 lang: string,
640 compilerId: string,
641 compilerName: string,
642 editorid: number,
643 treeid: number,
644): ComponentConfig<typeof OPT_PIPELINE_VIEW_COMPONENT_NAME> {
645 return {
646 type: 'component',
647 componentName: OPT_PIPELINE_VIEW_COMPONENT_NAME,
648 componentState: {
649 id,
650 lang,
651 compiler: compilerId,
652 compilerName,
653 editorid,
654 treeid,
655 selectedGroup: '',
656 selectedIndex: 0,
657 sidebarWidth: 0,
658 },
659 };
660}
661
662/** Get an empty rust mir view component. */
663export function getRustMirView(): ComponentConfig<typeof RUST_MIR_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected