Commit 60bc867
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- cmd/protoc-gen-go
- feature_resolution_test
- testdata
- featureresolution
- features
- compiler/protogen
- internal/cmd/generate-protos
9 files changed
+1916
-49
lines changedLines changed: 809 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.
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