MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / PseudocodeView

Function PseudocodeView

graph-ui/src/twin/TwinPanel.tsx:1069–1378  ·  view source on GitHub ↗
(props: {
    document: PseudocodeDocument;
    imports?: ImportsGroup | undefined;
    onOpenLine?: ((ref: PseudocodeSourceRef) => void) | undefined;
    refineAvailable?: boolean;
    refineState?: 'idle' | 'running' | 'applied' | 'refused';
    refineMessage?: string;
    onRefine?: (() => void) | undefined;
    onRestoreOriginal?: (() => void) | undefined;
    /** Der Name des Subjekts, fuer den Satz ueber dem Block. */
    symbolName: string;
})

Source from the content-addressed store, hash-verified

1067 * bei zwei Schritten wie bei zwanzig.
1068 */
1069export function PseudocodeView(props: {
1070 document: PseudocodeDocument;
1071 imports?: ImportsGroup | undefined;
1072 onOpenLine?: ((ref: PseudocodeSourceRef) => void) | undefined;
1073 refineAvailable?: boolean;
1074 refineState?: 'idle' | 'running' | 'applied' | 'refused';
1075 refineMessage?: string;
1076 onRefine?: (() => void) | undefined;
1077 onRestoreOriginal?: (() => void) | undefined;
1078 /** Der Name des Subjekts, fuer den Satz ueber dem Block. */
1079 symbolName: string;
1080}): JSX.Element {
1081 const { document, imports } = props;
1082 const numbered = document.lines.filter((line) => line.order !== undefined).length;
1083 const open = props.onOpenLine;
1084 const refineState = props.refineState ?? 'idle';
1085 const refineMessage = props.refineMessage ?? '';
1086 const lead = blockLeadOf(document, imports, props.symbolName);
1087 /*
1088 * Die Saetze ueber den Block selbst, die bis W8c unter ihm standen.
1089 *
1090 * Sie sind nicht weg, sie stehen hinter dem Fragezeichen: Deckung,
1091 * ungenannte Symbole und die Herkunftsnotiz, WOERTLICH wie vorher, dazu der
1092 * Satz ueber das, was neben den Schritten steht. Der Grund ist derselbe wie
1093 * in W8b unter dem Diagramm: eine Ehrlichkeit, die als Textwand erscheint,
1094 * wird ueberlesen wie ein Cookie-Banner und erreicht das Gegenteil ihres
1095 * Zwecks.
1096 */
1097 const moved = [
1098 pseudocodeCoverage(document.honest.coveredSymbols, document.scopeSymbols),
1099 ...(document.honest.uncovered.length > 0
1100 ? [pseudocodeUncovered(document.honest.uncovered)]
1101 : []),
1102 PSEUDOCODE_SOURCE_NOTE,
1103 ];
1104 return (
1105 <div
1106 className="atlas-pseudocode"
1107 data-testid="atlas-pseudocode"
1108 data-lines={numbered}
1109 data-imports={imports?.entries.length ?? 0}
1110 data-refine={refineState}
1111 data-lead={lead.kind}
1112 data-behind={lead.behindSteps}
1113 >
1114 <h3 className="atlas-pseudocode-title" data-testid="atlas-pseudocode-title">
1115 {document.title}
1116 </h3>
1117
1118 {/*
1119 * Der Kopf: in einem Satz, was in diesem Block der Fund ist.
1120 *
1121 * Er steht immer da, auch wenn nichts gefunden wurde, und sagt
1122 * dann genau das. Ein Kopf, der nur bei einem Fund erscheint,
1123 * macht sein Fehlen zur Behauptung.
1124 */}
1125 <p
1126 className="atlas-pseudocode-lead"

Callers

nothing calls this directly

Calls 5

blockLeadOfFunction · 0.90
pseudocodeCoverageFunction · 0.90
pseudocodeUncoveredFunction · 0.90
locationLabelFunction · 0.90
openFunction · 0.50

Tested by

no test coverage detected