aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/field.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xgbgen/field.go')
-rw-r--r--nexgb/xgbgen/field.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/nexgb/xgbgen/field.go b/nexgb/xgbgen/field.go
index 6d39af2..8d8412c 100644
--- a/nexgb/xgbgen/field.go
+++ b/nexgb/xgbgen/field.go
@@ -102,8 +102,10 @@ func (f *ListField) Size() Size {
return newExpressionSize(simpleLen)
case *Resource:
return newExpressionSize(simpleLen)
+ case *TypeDef:
+ return newExpressionSize(simpleLen)
default:
- log.Fatalf("Cannot compute list size with type '%T'.", f.Type)
+ log.Panicf("Cannot compute list size with type '%T'.", f.Type)
}
panic("unreachable")
}