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

Function getCfgViewWith

static/components.ts:526–544  ·  view source on GitHub ↗
(
    id: number,
    editorid: number,
    treeid: number,
    isircfg?: boolean,
)

Source from the content-addressed store, hash-verified

524
525/** Get a cfg view with the given configuration. */
526export function getCfgViewWith(
527 id: number,
528 editorid: number,
529 treeid: number,
530 isircfg?: boolean,
531): ComponentConfig<typeof CFG_VIEW_COMPONENT_NAME> {
532 return {
533 type: 'component',
534 componentName: CFG_VIEW_COMPONENT_NAME,
535 componentState: {
536 selectedFunction: null,
537 id,
538 editorid,
539 treeid,
540 isircfg,
541 narrowtreelayout: true,
542 },
543 };
544}
545
546/** Get a conformance view with the given configuration. */
547export function getConformanceView(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected