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

Function getYulViewWith

static/components.ts:799–819  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    yulOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

797
798/** Get a Yul view with the given configuration. */
799export function getYulViewWith(
800 id: number,
801 source: string,
802 yulOutput: unknown,
803 compilerName: string,
804 editorid: number,
805 treeid: number,
806): ComponentConfig<typeof YUL_VIEW_COMPONENT_NAME> {
807 return {
808 type: 'component',
809 componentName: YUL_VIEW_COMPONENT_NAME,
810 componentState: {
811 id,
812 source,
813 yulOutput,
814 compilerName,
815 editorid,
816 treeid,
817 },
818 };
819}
820
821/** Get an empty Lean C view component. */
822export function getLeanCView(): ComponentConfig<typeof LEAN_C_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected