protobuf-go/cmd/protoc-gen-go/testdata/extensions
Damien Neil 44000a1bea cmd/protoc-gen-go: treat extensions fields as proto2 in some places
The v1 generator doesn't include a "proto3" tag on extension fields,
even when the field is defined in a proto3 file. Match that behavior for
consistency. We can probably change this later if we want to; it's
unlikely anyone is depending on this behavior.

The v1 generator uses pointer types for extension fields, even when the
field is defined in a proto3 file. (e.g., *FooEnum instead of FooEnum.)
Match this behavior. We can't change this without breaking compatibility
in the generated code.

Change-Id: I4072f3dd1c915bf9ab89f1d5198e0144cb4de20f
Reviewed-on: https://go-review.googlesource.com/c/144282
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-10-24 19:46:45 +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: special cases for MessageSet extensions 2018-09-24 17:25:31 +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