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/type.go | |
| parent | 590f8a3cd197f6fc344cd59fa19b2f2696baac43 (diff) | |
finally starting on the crescendo: requests and replies.
Diffstat (limited to 'xgbgen/type.go')
| -rw-r--r-- | xgbgen/type.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xgbgen/type.go b/xgbgen/type.go index 1e06bda..d8e76a2 100644 --- a/xgbgen/type.go +++ b/xgbgen/type.go @@ -221,7 +221,7 @@ func (e *EventCopy) XmlName() string { } func (e *EventCopy) Size() Size { - panic("Cannot take size of EventCopy type.") + return newExpressionSize(&Value{v: 32}) } func (e *EventCopy) Initialize(p *Protocol) { @@ -252,11 +252,14 @@ func (e *Error) XmlName() string { } func (e *Error) Size() Size { - panic("Cannot take size of Error type.") + return newExpressionSize(&Value{v: 32}) } func (e *Error) Initialize(p *Protocol) { e.srcName = TypeSrcName(p, e) + for _, field := range e.Fields { + field.Initialize(p) + } } func (e *Error) ErrConst() string { @@ -283,7 +286,7 @@ func (e *ErrorCopy) XmlName() string { } func (e *ErrorCopy) Size() Size { - panic("Cannot take size of ErrorCopy type.") + return newExpressionSize(&Value{v: 32}) } func (e *ErrorCopy) Initialize(p *Protocol) { |
