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

Function getPpViewWith

static/components.ts:429–449  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    ppOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

427
428/** Get a preprocessor view with the given configuration. */
429export function getPpViewWith(
430 id: number,
431 source: string,
432 ppOutput: unknown,
433 compilerName: string,
434 editorid: number,
435 treeid: number,
436): ComponentConfig<typeof PP_VIEW_COMPONENT_NAME> {
437 return {
438 type: 'component',
439 componentName: PP_VIEW_COMPONENT_NAME,
440 componentState: {
441 id,
442 source,
443 ppOutput,
444 compilerName,
445 editorid,
446 treeid,
447 },
448 };
449}
450
451/** Get an empty ast view component. */
452export function getAstView(): ComponentConfig<typeof AST_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected