Commit 5049f747 authored by Kirill Smelkov's avatar Kirill Smelkov

go/neo/proto: protogen: Load zodb.Tid and zodb.Oid types

Not used yet, but they will be needed for msgpack codec.
parent ebac0628
...@@ -116,6 +116,10 @@ func typeName(typ types.Type) string { ...@@ -116,6 +116,10 @@ func typeName(typ types.Type) string {
return types.TypeString(typ, qf) return types.TypeString(typ, qf)
} }
// zodb.Tid and zodb.Oid types
var zodbTid types.Type
var zodbOid types.Type
var neo_customCodec *types.Interface // type of neo.customCodec var neo_customCodec *types.Interface // type of neo.customCodec
var memBuf types.Type // type of mem.Buf var memBuf types.Type // type of mem.Buf
...@@ -279,6 +283,10 @@ func main() { ...@@ -279,6 +283,10 @@ func main() {
} }
memBuf = __.Type() memBuf = __.Type()
// extract zodb.Tid and zodb.Oid
zodbTid = xlookup(zodbPkg, "Tid").Type()
zodbOid = xlookup(zodbPkg, "Oid").Type()
// prologue // prologue
f := fileMap["proto.go"] f := fileMap["proto.go"]
buf := Buffer{} buf := Buffer{}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment