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

Function getClojureMacroExpViewWith

static/components.ts:991–1011  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    clojureMacroExpOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

989
990/** Get a Clojure macro exp view with the given configuration. */
991export function getClojureMacroExpViewWith(
992 id: number,
993 source: string,
994 clojureMacroExpOutput: unknown,
995 compilerName: string,
996 editorid: number,
997 treeid: number,
998): ComponentConfig<typeof CLOJURE_MACRO_EXP_VIEW_COMPONENT_NAME> {
999 return {
1000 type: 'component',
1001 componentName: CLOJURE_MACRO_EXP_VIEW_COMPONENT_NAME,
1002 componentState: {
1003 id,
1004 source,
1005 clojureMacroExpOutput,
1006 compilerName,
1007 editorid,
1008 treeid,
1009 },
1010 };
1011}
1012
1013/** Get an empty device view component. */
1014export function getDeviceView(): ComponentConfig<typeof DEVICE_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected