Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jul 24, 2024
1 parent 9c692f6 commit 204328f
Show file tree
Hide file tree
Showing 9 changed files with 234,132 additions and 95,178 deletions.
3 changes: 3 additions & 0 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ func (g *Generator) VariantChildIds(id int64) []string {
ttype := g.Metadata.AsMetadataV14.EfficientLookup[id]
variant := ttype.Def.Variant
for _, v := range variant.Variants {
if len(v.Fields) == 0 {
return []string{"[]int64{}"}
}
var o []int64 //child of 94
for _, f := range v.Fields {
o = append(o, f.Type.Int64())
Expand Down
183,081 changes: 92,240 additions & 90,841 deletions pb/sf/gear/metadata/type/v1/output.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pb/sf/gear/type/v1/block.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 204328f

Please sign in to comment.