Codegen: Add support for optional maps (#60883)

This commit is contained in:
sam boyer
2023-01-03 02:12:48 -05:00
committed by GitHub
parent 3ceb3edcb9
commit 7fd1d5cef0
4 changed files with 4 additions and 4 deletions

View File

@@ -220,7 +220,7 @@ func DecoderCompactor() dstutil.ApplyFunc {
c.Delete()
}
case *dst.Field:
if id, is := x.Type.(*dst.Ident); is {
if id, is := ddepoint(x.Type).(*dst.Ident); is {
if expr, has := replace[id.Name]; has {
x.Type = expr
}