Move a table's rows, links and pins into internal/rows, and walk every path through one per-step function, so Fake refuses a level carrying a repeat

This commit is contained in:
2026-10-05 21:33:30 +02:00
committed by Lillem4n
parent 05d9fcd8c1
commit 707cd6b203
22 changed files with 840 additions and 607 deletions
+2 -2
View File
@@ -69,8 +69,8 @@ func shippedIndexSource(whole *Generator) ([]byte, error) {
b.WriteString("// Code generated by go generate. DO NOT EDIT.\n\npackage fejkdata\n\nvar shippedIndex = map[string]shippedEntry{\n")
for _, s := range categorySites(&whole.root) {
fmt.Fprintf(&b, "%q: {", s.path)
if t, isTable := s.n.(*table); isTable && t.parentIndex >= 0 {
fmt.Fprintf(&b, "parent: %q, ", t.header[t.parentIndex])
if t, isTable := s.n.(*table); isTable && t.rows.Options().Parent != "" {
fmt.Fprintf(&b, "parent: %q, ", t.rows.Options().Parent)
}
ps := paths(s.n)
sort.Strings(ps)