Open cheng81 opened 4 years ago
I seriously can't find any valid reason to keep the {{:reserved_numbers, _}, _}
and {{:reserved_names, _}, _}
around, so in the latest commit I just filter them out in Protobuf.Parser
directly, so they don't ever creep up in other parts of the code.
@bitwalker any chance we can get this reviewed?
The current implementation mistakenly uses
reserved_numbers
tuples coming fromgpb
asproto3_msg
, since thename
in the tuple matches the one used in the propermessage
definition. The commit simply skips over those tuples, since to the best of my knowledge they are useless in the generated code: those fields are by definition not mentioned in theprotobuf
message, hence they will never be either written or read. This PR addresses bitwalker/exprotobuf#81