Skip to content

Commit c880efb

Browse files
committed
internal/core/adt: add disjunction info as blob to debug output
We use the same disjunctInfo string as on the log to ID in what context a graph is generate. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I8ae51526cb159d2be6d9fc34813140715edfb260 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1207440 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 053f47b commit c880efb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/core/adt/debug.go

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ func CreateMermaidGraph(ctx *OpContext, v *Vertex, all bool) (graph string, hasE
324324

325325
io.WriteString(m.w, "graph TD\n")
326326
io.WriteString(m.w, " classDef err fill:#e01010,stroke:#000000,stroke-width:3,font-size:medium\n")
327+
fmt.Fprintf(m.w, " title[<b>%v</b>]\n", ctx.disjunctInfo())
327328

328329
indent(m.w, 1)
329330
fmt.Fprintf(m.w, "style %s stroke-width:5\n\n", m.vertexID(v))

0 commit comments

Comments
 (0)