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

Function getRustHirViewWith

static/components.ts:959–979  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    rustHirOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

957
958/** Get a rust hir view with the given configuration. */
959export function getRustHirViewWith(
960 id: number,
961 source: string,
962 rustHirOutput: unknown,
963 compilerName: string,
964 editorid: number,
965 treeid: number,
966): ComponentConfig<typeof RUST_HIR_VIEW_COMPONENT_NAME> {
967 return {
968 type: 'component',
969 componentName: RUST_HIR_VIEW_COMPONENT_NAME,
970 componentState: {
971 id,
972 source,
973 rustHirOutput,
974 compilerName,
975 editorid,
976 treeid,
977 },
978 };
979}
980
981/** Get an empty Clojure macro exp view component. */
982export function getClojureMacroExpView(): ComponentConfig<typeof CLOJURE_MACRO_EXP_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected