(ext *super.TypeError)
| 201 | } |
| 202 | |
| 203 | func (e *Encoder) encodeTypeError(ext *super.TypeError) (*super.TypeError, error) { |
| 204 | inner, err := e.Encode(ext.Type) |
| 205 | if err != nil { |
| 206 | return nil, err |
| 207 | } |
| 208 | typ := e.sctx.LookupTypeError(inner) |
| 209 | e.bytes = append(e.bytes, TypeDefError) |
| 210 | e.bytes = binary.AppendUvarint(e.bytes, uint64(super.TypeID(typ.Type))) |
| 211 | return typ, nil |
| 212 | } |
| 213 | |
| 214 | func (e *Encoder) encodeTypeFusion(ext *super.TypeFusion) (*super.TypeFusion, error) { |
| 215 | inner, err := e.Encode(ext.Type) |
no test coverage detected