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

Function getOptViewWith

static/components.ts:342–362  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    optOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

340
341/** Get an opt view with the given configuration. */
342export function getOptViewWith(
343 id: number,
344 source: string,
345 optOutput: unknown,
346 compilerName: string,
347 editorid: number,
348 treeid: number,
349): ComponentConfig<typeof OPT_VIEW_COMPONENT_NAME> {
350 return {
351 type: 'component',
352 componentName: OPT_VIEW_COMPONENT_NAME,
353 componentState: {
354 id,
355 source,
356 optOutput,
357 compilerName,
358 editorid,
359 treeid,
360 },
361 };
362}
363
364export function getStackUsageView(): ComponentConfig<typeof STACK_USAGE_VIEW_COMPONENT_NAME> {
365 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected