protobuf-go/reflect/protodesc
Joe Tsai 6c26a04a51 internal/filedesc: use jsonName.Init method over JSONName constructor
The JSONName constructor returns a struct value which shallow copies
a sync.Once within it; this is a dubious pattern.
Instead, add a jsonName.Init method to initialize the value.

Change-Id: I190a7239b1b62a8041ee7e4e09c0fe37b64ff623
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/213237
Reviewed-by: Damien Neil <dneil@google.com>
2020-01-06 18:42:14 +00:00
..
desc_init.go internal/filedesc: use jsonName.Init method over JSONName constructor 2020-01-06 18:42:14 +00:00
desc_resolve.go all: use typed variant of protoreflect.ValueOf 2019-09-17 21:33:16 +00:00
desc_validate.go all: rename tag and flags for legacy support 2019-08-08 20:49:00 +00:00
desc.go all: remove dead code 2019-08-06 21:16:48 +00:00
file_test.go reflect/protoregistry: add (*Types).Register{Message,Enum,Extension} 2019-10-31 16:23:42 +00:00
proto.go reflect/protoreflect: add FileDescriptor.SourceLocations 2019-07-13 00:15:59 +00:00