Skip to content

Commit 60bc867

Browse files
mkruskal-googlestapelberg
authored andcommitted
compiler/protogen: introduce and expose feature resoluton to protogen
This will allow go plugins to specify any custom extensions they care about using protoc to generate a FeatureSetDefaults object. They can then access all ResolvedFeatures of any descriptors to do more involved codegen for languages outside of go. Change-Id: I3be49645612c6712a9e58ba65b6374735f8197b8 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/729461 Reviewed-by: Lasse Folger <[email protected]> Reviewed-by: Michael Stapelberg <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent f10681a commit 60bc867

File tree

9 files changed

+1916
-49
lines changed

9 files changed

+1916
-49
lines changed

cmd/protoc-gen-go/feature_resolution_test/feature_resolution_test.go

Lines changed: 809 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.

cmd/protoc-gen-go/testdata/featureresolution/basic.pb.go

Lines changed: 354 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)