protobuf-go/reflect/protoregistry
Joe Tsai 23ddbd1430 reflect/prototype: add NewFileFromDescriptorProto constructor
Implement NewFileFromDescriptorProto, which constructs a
protoreflect.FileDescriptor from a provided descriptor.FileDescriptorProto.

Some other minor changes:
* Allow calling Find and Range methods on nil *protoregistry.Files to match
the behavior of maps where index operations are permitted, but store panics.
* Switch protoregistry test to be protoregistry_test to avoid cyclic dependency.

Change-Id: I5536901ef5096014a3421e63bc4a9dfcad335ea4
Reviewed-on: https://go-review.googlesource.com/132455
Reviewed-by: Damien Neil <dneil@google.com>
2018-09-05 21:25:53 +00:00
..
registry_test.go reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00
registry.go reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00