package
1.0.3
Repository: https://github.com/go-curses/bitmasker.git
Documentation: pkg.go.dev

# Packages

The genericfeatures package provides utilities for detecting usage of generic programming in Go packages.

# Functions

ForFuncType returns n.TypeParams.
ForNamed extracts the (possibly empty) type parameter object list from named.
ForSignature returns sig.TypeParams().
ForTypeSpec returns n.TypeParams.
GetIndexExprData extracts data from AST nodes that represent index expressions.
GetInstances returns info.Instances.
InitInstanceInfo initializes info to record information about type and function instances.
Instantiate calls types.Instantiate.
IsComparable calls iface.IsComparable().
IsImplicit calls iface.IsImplicit().
IsMethodSet calls iface.IsMethodSet().
IsTypeParam reports whether t is a type parameter.
MarkImplicit calls iface.MarkImplicit().
NamedTypeArgs returns named.TypeArgs().
NamedTypeOrigin returns named.Orig().
NewSignatureType calls types.NewSignatureType.
NewTerm calls types.NewTerm.
NewTypeParam calls types.NewTypeParam.
NewUnion calls types.NewUnion.
PackIndexExpr returns an *ast.IndexExpr or *ast.IndexListExpr, depending on the cardinality of indices.
RecvTypeParams returns sig.RecvTypeParams().
SetForNamed sets the type params tparams on n.
SetTypeParamConstraint calls tparam.SetConstraint(constraint).
StructuralTerms returns a slice of terms representing the normalized structural type restrictions of a type parameter, if any.

# Constants

Enabled reports whether type parameters are enabled in the current build environment.

# Variables

No description provided by the author

# Structs

A IndexExprData holds data from both ast.IndexExpr and the new ast.MultiIndexExpr, which was introduced in Go 1.18.

# Type aliases

Context is an alias for types.Context.
IndexListExpr is an alias for ast.IndexListExpr.
Instance is an alias for types.Instance.
Term is an alias for types.Term.
TypeList is an alias for types.TypeList.
TypeParam is an alias for types.TypeParam.
TypeParamList is an alias for types.TypeParamList.
Union is an alias for types.Union.