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

Function getCompilerWith

static/components.ts:97–117  ·  view source on GitHub ↗
(
    editorId: number,
    filters: ParseFiltersAndOutputOptions | undefined,
    options: unknown,
    compilerId: string,
    langId?: string,
    libs?: unknown,
)

Source from the content-addressed store, hash-verified

95 * TODO: Find the right type for options
96 */
97export function getCompilerWith(
98 editorId: number,
99 filters: ParseFiltersAndOutputOptions | undefined,
100 options: unknown,
101 compilerId: string,
102 langId?: string,
103 libs?: unknown,
104): ComponentConfig<typeof COMPILER_COMPONENT_NAME> {
105 return {
106 type: 'component',
107 componentName: COMPILER_COMPONENT_NAME,
108 componentState: {
109 source: editorId,
110 compiler: compilerId,
111 lang: langId,
112 filters,
113 options,
114 libs,
115 },
116 };
117}
118
119/** Get a compiler for a tree mode component. */
120export function getCompilerForTree(treeId: number, lang: string): ComponentConfig<typeof COMPILER_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected