Codegen: Add support for optional maps (#60883)
This commit is contained in:
1 parent
3ceb3edcb9
commit
7fd1d5cef0
4 files changed
+4
-4
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user