protobuf-go/cmd
Damien Neil 6238696abc cmd/protoc-gen-go: replicate v1 generator behavior for MessageSet extensions
Given:

  package foo
  extend proto2.bridge.MessageSet {
    optional Message message_set_extension = 100;
  }

Register the extension as a message set extension and give it the name
"foo.".

We really shouldn't do this in this case; the special-case treatment of
extensions to MessageSet is only for extensions nested in a parent
message. However, this is consistent with the behavior of the v1 generator.
Match that for now.

Change-Id: I919c409605a197904fd3227efc920192d484f431
Reviewed-on: https://go-review.googlesource.com/c/145957
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-10-30 18:46:20 +00:00
..
protoc-gen-go cmd/protoc-gen-go: replicate v1 generator behavior for MessageSet extensions 2018-10-30 18:46:20 +00:00
protoc-gen-go-grpc reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00