protobuf-go/encoding/textpb
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
..
decode_test.go internal/cmd/generate-protos: initial commit 2019-03-01 20:47:52 +00:00
decode.go internal/encoding/text: change Value.Float{32,64} to Value.Float 2019-03-13 04:35:13 +00:00
doc.go encoding/textpb: add package doc 2019-03-10 03:14:08 +00:00
encode_test.go cmd/protoc-gen-go: correlate v1 ExtensionDesc with v2 ExtensionType 2019-03-15 01:24:42 +00:00
encode.go encoding/textpb: add tests for nil message in repeated and map 2019-02-11 23:22:48 +00:00
other_test.go internal/cmd/generate-protos: initial commit 2019-03-01 20:47:52 +00:00