MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / isNonTypeParamInterface

Function isNonTypeParamInterface

types/predicates.go:89–91  ·  view source on GitHub ↗

isNonTypeParamInterface reports whether t is an interface type but not a type parameter.

(t Type)

Source from the content-addressed store, hash-verified

87
88// isNonTypeParamInterface reports whether t is an interface type but not a type parameter.
89func isNonTypeParamInterface(t Type) bool {
90 return !isTypeParam(t) && IsInterface(t)
91}
92
93// isTypeParam reports whether t is a type parameter.
94func isTypeParam(t Type) bool {

Callers 4

conversionMethod · 0.85
assignmentMethod · 0.85
binaryMethod · 0.85
exprInternalMethod · 0.85

Calls 2

isTypeParamFunction · 0.85
IsInterfaceFunction · 0.85

Tested by

no test coverage detected