State the node-kind switch rule on node
This commit is contained in:
@@ -49,8 +49,7 @@ 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. A new node kind goes in every switch
|
||||
// that panics through internalError on a kind it does not list.
|
||||
// renderEdges mirrors this switch for the fences.
|
||||
func render(s *session, n node, sc renderScope) string {
|
||||
switch n := n.(type) {
|
||||
case *choice:
|
||||
|
||||
Reference in New Issue
Block a user