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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user