protobuf-go/cmd/protoc-gen-go
Damien Neil a8593bae57 reflect/protoreflect: drop the ProtoEnum type
Drop the protoreflect.ProtoEnum type (containing a single method
returning a protoreflect.Enum) and make generated enum types
directly implement protoreflect.Enum instead.

Messages have a two-level type split (ProtoMessage and Message) to
minimize conflicts between reflection methods and field names. Enums
need no such split, since enums do not have fields and therefore have
no source of conflicts.

Change-Id: I2b6222e9404253e6bfef2217859e1b760ffcd29b
Reviewed-on: https://go-review.googlesource.com/c/156902
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Reviewed-by: Damien Neil <dneil@google.com>
2019-01-09 00:40:35 +00:00
..
internal_gengo reflect/protoreflect: drop the ProtoEnum type 2019-01-09 00:40:35 +00:00
testdata reflect/protoreflect: drop the ProtoEnum type 2019-01-09 00:40:35 +00:00
golden_test.go reflect/protodesc: split descriptor related functionality from prototype 2018-12-05 00:38:30 +00:00
main.go protogen: add an option to rewrite import paths 2018-09-28 21:19:59 +00:00