(ext *super.TypeNamed)
| 185 | } |
| 186 | |
| 187 | func (e *Encoder) encodeTypeName(ext *super.TypeNamed) (*super.TypeNamed, error) { |
| 188 | inner, err := e.Encode(ext.Type) |
| 189 | if err != nil { |
| 190 | return nil, err |
| 191 | } |
| 192 | typ, err := e.sctx.LookupTypeNamed(ext.Name, inner) |
| 193 | if err != nil { |
| 194 | return nil, err |
| 195 | } |
| 196 | e.bytes = append(e.bytes, TypeDefName) |
| 197 | e.bytes = binary.AppendUvarint(e.bytes, uint64(len(typ.Name))) |
| 198 | e.bytes = append(e.bytes, typ.Name...) |
| 199 | e.bytes = binary.AppendUvarint(e.bytes, uint64(super.TypeID(typ.Type))) |
| 200 | return typ, nil |
| 201 | } |
| 202 | |
| 203 | func (e *Encoder) encodeTypeError(ext *super.TypeError) (*super.TypeError, error) { |
| 204 | inner, err := e.Encode(ext.Type) |
no test coverage detected