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

Function getIrViewWith

static/components.ts:575–595  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    irOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

573
574/** Get a ir view with the given configuration. */
575export function getIrViewWith(
576 id: number,
577 source: string,
578 irOutput: unknown,
579 compilerName: string,
580 editorid: number,
581 treeid: number,
582): ComponentConfig<typeof IR_VIEW_COMPONENT_NAME> {
583 return {
584 type: 'component',
585 componentName: IR_VIEW_COMPONENT_NAME,
586 componentState: {
587 id,
588 source,
589 irOutput,
590 compilerName,
591 editorid,
592 treeid,
593 },
594 };
595}
596
597export function getClangirView(): ComponentConfig<typeof CLANGIR_VIEW_COMPONENT_NAME> {
598 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected