• Kirill Smelkov's avatar
    go/neo/proto: protogen: Reuse sizer for typeSizeFixed · e7a58934
    Kirill Smelkov authored
    Generating code through sizer can already give answer if a type is fixed
    size or not. And in practice we don't care at all if it will be a bit
    slower compared to previous explicit type switch.
    
    For current code it is just a small cleanup, and it will be handy to
    support messagepack encoding as well.
    
    No change in generated code.
    e7a58934
protogen.go 33.3 KB