MCPcopy Create free account
hub / github.com/google/gvisor / hasTypeParams

Function hasTypeParams

tools/checklocks/analysis.go:79–81  ·  view source on GitHub ↗

hasTypeParams returns true iff the named type has type parameters.

(typ *types.Named)

Source from the content-addressed store, hash-verified

77
78// hasTypeParams returns true iff the named type has type parameters.
79func 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//

Callers 2

typeAlignmentMethod · 0.85
checkTypeAlignmentMethod · 0.85

Calls 1

LenMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…