feat: upgrade to x/tools 0.28

This commit is contained in:
Li Jie
2024-11-29 14:23:46 +08:00
parent db3f6e077e
commit 03b469212e
29 changed files with 202 additions and 153 deletions

View File

@@ -113,6 +113,8 @@ func (p goTypes) cvtType(typ types.Type) (raw types.Type, cvt bool) {
}
case *types.Tuple:
return p.cvtTuple(t)
case *types.TypeParam:
return typ.Underlying(), false
default:
panic(fmt.Sprintf("cvtType: unexpected type - %T", typ))
}