(typ *super.TypeRecord, prefix []string)
| 70 | } |
| 71 | |
| 72 | func buildPath(typ *super.TypeRecord, prefix []string) [][]string { |
| 73 | var out [][]string |
| 74 | for _, f := range typ.Fields { |
| 75 | if typ, ok := super.TypeUnder(f.Type).(*super.TypeRecord); ok { |
| 76 | out = append(out, buildPath(typ, append(prefix, f.Name))...) |
| 77 | } else { |
| 78 | out = append(out, append(prefix, f.Name)) |
| 79 | } |
| 80 | } |
| 81 | return out |
| 82 | } |
| 83 | |
| 84 | func appendPaths(paths [][]string, s *vector.String, inner, outer []uint32) ([]uint32, []uint32) { |
| 85 | for _, path := range paths { |