mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-03-12 04:14:21 +00:00
Minor refactoring of impl.MessageType initialization: Pull the information gathered about a message struct by makeKnownFieldsFunc out into a struct that we can pass around. At the moment, makeKnownFieldsFunc is the only user of this struct, but this will simplify the table (un)marshaler. Drop the 'specialByName' map indexing XXX_ fields because it currently isn't used anywhere. Change-Id: I992c9f490982a05f3919d7d4e08052e2ab54d44d Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/176220 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>