Render every row of a table root pinned, and drop the comments restating renderDraws and columnDraws

This commit is contained in:
2026-09-26 14:57:04 +02:00
committed by Lillem4n
parent 9d8a52de68
commit 55fb1ec42e
2 changed files with 6 additions and 2 deletions
-2
View File
@@ -75,7 +75,6 @@ func (c *drawCheck) checkDraws(path string, n node) error {
return nil
}
// renderDraws gathers the reads one render of t makes.
func renderDraws(t *template) *drawWalk {
w := newDrawWalk()
for _, e := range renderEdges(t) {
@@ -179,7 +178,6 @@ func refRead(n node, label string) (arm, bool) {
// checkColumnDraws fences a record's columns as one render.
func checkColumnDraws(t *template, columns []string) error { return columnDraws(t, columns).check() }
// columnDraws gathers the reads one record render of t's columns makes.
func columnDraws(t *template, columns []string) *drawWalk {
w := newDrawWalk()
for _, name := range columns {
+6
View File
@@ -128,6 +128,12 @@ func renderRoot(s *session, t *template) {
switch {
case t.table != nil:
render(s, t.table, sc)
for r := 0; r < t.table.rowCount(); r++ {
var set holdSet
sc := renderScope{set: &set}
sc.hold().pins.pin(t.table, r)
render(s, t.table.wholeRow, sc)
}
case t.cellOf != nil:
sc.t, sc.row = t.cellOf, t.cellRow
render(s, t, sc)