// FileQualifier returns a [types.Qualifier] function that qualifies // imported symbols appropriately based on the import environment of a // given file. func FileQualifier(f *ast.File, pkg *types.Package, info *types.Info) types.Qualifier { … } // FormatTypeParams turns TypeParamList into its Go representation, such as: // [T, Y]. Note that it does not print constraints as this is mainly used for // formatting type params in method receivers. func FormatTypeParams(tparams *types.TypeParamList) string { … }