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

Function getConformanceView

static/components.ts:547–563  ·  view source on GitHub ↗
(
    editorid: number,
    treeid: number,
    source: string,
    langId: string,
)

Source from the content-addressed store, hash-verified

545
546/** Get a conformance view with the given configuration. */
547export function getConformanceView(
548 editorid: number,
549 treeid: number,
550 source: string,
551 langId: string,
552): ComponentConfig<typeof CONFORMANCE_VIEW_COMPONENT_NAME> {
553 return {
554 type: 'component',
555 componentName: CONFORMANCE_VIEW_COMPONENT_NAME,
556 componentState: {
557 editorid,
558 treeid,
559 source,
560 langId,
561 },
562 };
563}
564
565/** Get an empty ir view component. */
566export function getIrView(): ComponentConfig<typeof IR_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected