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

Function getToolViewWith

static/components.ts:257–279  ·  view source on GitHub ↗
(
    compilerId: number,
    compilerName: string,
    editorid: number,
    toolId: string,
    args: string,
    monacoStdin: boolean,
    tree: number,
)

Source from the content-addressed store, hash-verified

255
256/** Get a tool view component with the given configuration. */
257export function getToolViewWith(
258 compilerId: number,
259 compilerName: string,
260 editorid: number,
261 toolId: string,
262 args: string,
263 monacoStdin: boolean,
264 tree: number,
265): ComponentConfig<typeof TOOL_COMPONENT_NAME> {
266 return {
267 type: 'component',
268 componentName: TOOL_COMPONENT_NAME,
269 componentState: {
270 id: compilerId,
271 compilerName,
272 editorid,
273 toolId,
274 args,
275 tree,
276 monacoStdin,
277 },
278 };
279}
280
281/** Get an empty tool input view component. */
282export function getToolInputView(): ComponentConfig<typeof TOOL_INPUT_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected