protobuf-go/reflect
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
..
protoreflect reflect/protoregistry: initial commit 2018-08-24 23:46:08 +00:00
protoregistry reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00
prototype reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00