Panic through internalError on a node kind contained or paths does not list

This commit is contained in:
2026-09-29 02:31:52 +02:00
committed by Lillem4n
parent a82e937412
commit 38837b86a8
4 changed files with 7 additions and 7 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ func descend(s *session, root node, segments []string, sc renderScope) (node, er
// render evaluates a compiled node to a string. compile validates every node up
// front, so rendering a compiled tree cannot fail. sc holds the reference draws the
// render shares; each repeat iteration renders over a hold set of its own.
// renderEdges mirrors this switch for the fences, so a new node kind goes in both.
// renderEdges mirrors this switch for the fences. A new node kind goes in every switch
// that panics through internalError on a kind it does not list.
func render(s *session, n node, sc renderScope) string {
switch n := n.(type) {
case *choice: