Skip to content

Commit 2e312df

Browse files
committed
internal/core/debug: simplify logic of debug visualization
Remove the special case for lets. This caused some nodes to be dropped. These nodes are relevant for upcoming algorithmic changes, so by dropping special handling of lets we ensure that they are shown. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: If49d214326d4f688e505ef95c9e74caadab62cb4 Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1199270 Reviewed-by: Daniel Martí <[email protected]> Reviewed-by: Matthew Sackman <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 6cc01b0 commit 2e312df

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

internal/core/adt/debug.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -551,15 +551,7 @@ func (m *mermaidContext) cc(cc *closeContext) {
551551
case PARENT:
552552
w = node
553553
name = m.pstr(d.dependency)
554-
case EVAL:
555-
if cc.Label().IsLet() {
556-
// Do not show eval links for let nodes, as they never depend
557-
// on the parent node. Alternatively, link them to the root
558-
// node instead.
559-
return
560-
}
561-
fallthrough
562-
case ARC, NOTIFY, DISJUNCT, COMP:
554+
case EVAL, ARC, NOTIFY, DISJUNCT, COMP:
563555
w = global
564556
indentLevel = 1
565557
name = m.pstr(d.dependency)

0 commit comments

Comments
 (0)