protobuf-go/internal
Joe Tsai afb455eaf8 cmd/protoc-gen-go: correlate v1 ExtensionDesc with v2 ExtensionType
Unfortunately a good amount of code uses pointer comparisons on the
v1 ExtensionDesc to determine exactly which extension field is set,
rather than checking whether the extension descriptor semantically
describes the field that they are interested in.

To preserve this behavior in v1, we need a 1:1 mapping between
a v2 ExtensionType and a specific v1 ExtensionDesc.

Change-Id: I852b3cefb4585bd656e48e5adad6cc28795d02df
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/167759
Reviewed-by: Damien Neil <dneil@google.com>
2019-03-15 01:24:42 +00:00
..
cmd proto: wire encoding support 2019-03-14 19:12:27 +00:00
descfield internal/cmd/generate-protos: generate internal descfield package 2019-03-02 23:16:45 +00:00
detrand internal/detrand: support disabling detrand 2018-11-29 07:49:45 +00:00
encoding internal/prototype: move from reflect/prototype 2019-03-13 20:17:00 +00:00
errors internal/errors: fix New in eliding prefix 2019-02-27 22:36:14 +00:00
fileinit cmd/protoc-gen-go: correlate v1 ExtensionDesc with v2 ExtensionType 2019-03-15 01:24:42 +00:00
flags
impl cmd/protoc-gen-go: correlate v1 ExtensionDesc with v2 ExtensionType 2019-03-15 01:24:42 +00:00
legacy cmd/protoc-gen-go: correlate v1 ExtensionDesc with v2 ExtensionType 2019-03-15 01:24:42 +00:00
mapsort proto: wire encoding support 2019-03-14 19:12:27 +00:00
pragma
prototype internal/prototype: move from reflect/prototype 2019-03-13 20:17:00 +00:00
scalar
set
testprotos cmd/protoc-gen-go: correlate v1 ExtensionDesc with v2 ExtensionType 2019-03-15 01:24:42 +00:00
typefmt reflect/protoreflect: add HasJSONName, ReservedRanges, and ReservedNames 2018-12-07 20:10:15 +00:00
value reflect: switch MessageType.New to return Message 2019-01-09 20:29:29 +00:00