package typeparams
import "go/internal/typeparams"
Package typeparams provides functions to work with type parameter data stored in the AST, while these AST changes are guarded by a build constraint.
Index ¶
- Constants
- func Get(ast.Node) *ast.FieldList
- func IsListExpr(n ast.Node) bool
- func PackExpr(list []ast.Expr) ast.Expr
- func Set(node ast.Node, params *ast.FieldList)
- func UnpackExpr(expr ast.Expr) []ast.Expr
Constants ¶
const DisallowParsing = 1 << 30
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 Enabled = false
Functions ¶
func Get ¶
func IsListExpr ¶
func PackExpr ¶
func Set ¶
func UnpackExpr ¶
Source Files ¶
- Version
- v1.17.12
- Published
- Jul 12, 2022
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 19 seconds ago –
Tools for package owners.