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

Function getRustMacroExpViewWith

static/components.ts:927–947  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    rustMacroExpOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

925
926/** Get a rust macro exp view with the given configuration. */
927export function getRustMacroExpViewWith(
928 id: number,
929 source: string,
930 rustMacroExpOutput: unknown,
931 compilerName: string,
932 editorid: number,
933 treeid: number,
934): ComponentConfig<typeof RUST_MACRO_EXP_VIEW_COMPONENT_NAME> {
935 return {
936 type: 'component',
937 componentName: RUST_MACRO_EXP_VIEW_COMPONENT_NAME,
938 componentState: {
939 id,
940 source,
941 rustMacroExpOutput,
942 compilerName,
943 editorid,
944 treeid,
945 },
946 };
947}
948
949/** Get an empty rust hir view component. */
950export function getRustHirView(): ComponentConfig<typeof RUST_HIR_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected