diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-02 01:46:30 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-02 01:46:30 -0400 |
| commit | 552804d994db62e1002f13a8cfbbbc2359d99eef (patch) | |
| tree | 1b88b3177a8a12a1e7da3b12f348dba27ee8a581 /xgbgen/field.go | |
| parent | 590f8a3cd197f6fc344cd59fa19b2f2696baac43 (diff) | |
finally starting on the crescendo: requests and replies.
Diffstat (limited to 'xgbgen/field.go')
| -rw-r--r-- | xgbgen/field.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xgbgen/field.go b/xgbgen/field.go index 6d39af2..8d8412c 100644 --- a/xgbgen/field.go +++ b/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") } |
