hasTypeParams returns true iff the named type has type parameters.
(typ *types.Named)
| 77 | |
| 78 | // hasTypeParams returns true iff the named type has type parameters. |
| 79 | func hasTypeParams(typ *types.Named) bool { |
| 80 | return typ.TypeParams() != nil && typ.TypeParams().Len() > 0 |
| 81 | } |
| 82 | |
| 83 | // checkTypeAlignment checks the alignment of the given type. |
| 84 | // |
no test coverage detected
searching dependent graphs…