protobuf-go/cmd/protoc-gen-go/testdata/extensions
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
..
base cmd/protoc-gen-go: special cases for MessageSet extensions 2018-09-24 17:25:31 +00:00
ext cmd/protoc-gen-go: replicate v1 generator behavior for MessageSet extensions 2018-10-30 18:46:20 +00:00
extra cmd/protoc-gen-go: special cases for MessageSet extensions 2018-09-24 17:25:31 +00:00
proto3 cmd/protoc-gen-go: treat extensions fields as proto2 in some places 2018-10-24 19:46:45 +00:00