mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-29 00:32:43 +00:00
a8317fb7c5
Fixes golang/protobuf#1575 When converting a protoreflect.FileDescriptor to a FileDescriptorProto, don't emit an invalid syntax. This can happen for placeholder files, which represent missing dependencies of a file. Change-Id: I1d2ae1bd9f89c8a92e751871ce5c02727505b5e2 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/540455 Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Michael Stapelberg <stapelberg@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com>