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

Function getFlagsViewWith

static/components.ts:403–417  ·  view source on GitHub ↗
(
    id: number,
    compilerName: string,
    compilerFlags: unknown,
)

Source from the content-addressed store, hash-verified

401
402/** Get a flags view with the given configuration. */
403export function getFlagsViewWith(
404 id: number,
405 compilerName: string,
406 compilerFlags: unknown,
407): ComponentConfig<typeof FLAGS_VIEW_COMPONENT_NAME> {
408 return {
409 type: 'component',
410 componentName: FLAGS_VIEW_COMPONENT_NAME,
411 componentState: {
412 id,
413 compilerName,
414 compilerFlags,
415 },
416 };
417}
418
419/** Get an empty preprocessor view component. */
420export function getPpView(): ComponentConfig<typeof PP_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected