Skip to content

Commit efc0cb8

Browse files
lvan100lianghuan
authored andcommitted
111
1 parent 04dddb4 commit efc0cb8

File tree

3 files changed

+499
-61
lines changed

3 files changed

+499
-61
lines changed

gen/generator/golang/type.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ func (g *Generator) genType(ctx Context, fileName string, doc tidl.Document) err
189189
{
190190
var temp []Type
191191
for _, t := range types {
192-
if c := t.BindingCount(); c == 0 || c == len(t.Fields) {
193-
temp = append(temp, t)
194-
continue
195-
}
196192
whole, body := SplitType(t)
197193
temp = append(temp, whole, body)
198194
}

0 commit comments

Comments
 (0)