aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/field.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-02 01:46:30 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-02 01:46:30 -0400
commit39507f86ab0468292c24081a80f41c1799d6b477 (patch)
tree002668a66ec90c71b3bbd05141b378d0b2218d58 /nexgb/xgbgen/field.go
parentf48b6fafc6d96527a554876e13fc5a0b548005af (diff)
downloadhaven-39507f86ab0468292c24081a80f41c1799d6b477.tar.gz
haven-39507f86ab0468292c24081a80f41c1799d6b477.tar.xz
haven-39507f86ab0468292c24081a80f41c1799d6b477.zip
finally starting on the crescendo: requests and replies.
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")
}