Package typeparams
Overview ▹
Index ▹
Constants
DisallowParsing is the numeric value of a parsing mode that disallows type parameters. This only matters if the typeparams experiment is active, and may be used for running tests that disallow generics.
const DisallowParsing = 1 << 30
const Enabled = false
func Get ¶
func Get(ast.Node) *ast.FieldList
func IsListExpr ¶
func IsListExpr(n ast.Node) bool
func PackExpr ¶
func PackExpr(list []ast.Expr) ast.Expr
func Set ¶
func Set(node ast.Node, params *ast.FieldList)
func UnpackExpr ¶
func UnpackExpr(expr ast.Expr) []ast.Expr