Give prove, stepInto and columnItems a case per node kind, panicking on the rest

This commit is contained in:
2026-09-29 09:37:32 +02:00
committed by Lillem4n
parent d01c914e7f
commit 16e4f4ebbb
5 changed files with 14 additions and 9 deletions
+3 -2
View File
@@ -11,8 +11,9 @@ import (
// node is a compiled element of the namespace tree: a folder, choice, null,
// template, table, column or row. Compiling JSON into these once (see compile)
// means rendering never re-inspects the raw JSON. A new kind needs a
// case in contained, paths, render and renderEdges; each panics on a kind it does not list.
// means rendering never re-inspects the raw JSON. A new kind needs a case in
// columnItems, contained, paths, prove, render, renderEdges and stepInto; each
// panics on a kind it does not list.
type node interface{ isNode() }
// folder is a namespace of named children, built from a directory of JSON files