protobuf-go/reflect/prototype
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
..
descriptor.go reflect/prototype: initial commit 2018-08-15 18:44:04 +00:00
placeholder_type.go reflect/protoregistry: initial commit 2018-08-24 23:46:08 +00:00
placeholder.go reflect/prototype: initial commit 2018-08-15 18:44:04 +00:00
protofile_desc.go reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00
protofile_list_gen.go reflect/prototype: initial commit 2018-08-15 18:44:04 +00:00
protofile_list.go reflect/prototype: initial commit 2018-08-15 18:44:04 +00:00
protofile_type.go reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00
protofile.go reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00
standalone_type.go reflect/prototype: initial commit 2018-08-15 18:44:04 +00:00
standalone.go reflect/prototype: initial commit 2018-08-15 18:44:04 +00:00
stringer.go reflect/prototype: initial commit 2018-08-15 18:44:04 +00:00
type_test.go reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00
validate.go reflect/prototype: add NewFileFromDescriptorProto constructor 2018-09-05 21:25:53 +00:00