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

Function getGnatDebugTreeViewWith

static/components.ts:863–883  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    gnatDebugTreeOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

861
862/** Get a gnat debug tree view with the given configuration. */
863export function getGnatDebugTreeViewWith(
864 id: number,
865 source: string,
866 gnatDebugTreeOutput: unknown,
867 compilerName: string,
868 editorid: number,
869 treeid: number,
870): ComponentConfig<typeof GNAT_DEBUG_TREE_VIEW_COMPONENT_NAME> {
871 return {
872 type: 'component',
873 componentName: GNAT_DEBUG_TREE_VIEW_COMPONENT_NAME,
874 componentState: {
875 id,
876 source,
877 gnatDebugTreeOutput,
878 compilerName,
879 editorid,
880 treeid,
881 },
882 };
883}
884
885/** Get an empty gnat debug info view component. */
886export function getGnatDebugView(): ComponentConfig<typeof GNAT_DEBUG_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected