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 PackIndexExpr(x ast.Expr, lbrack token.Pos, exprs []ast.Expr, rbrack token.Pos) ast.Expr
- type IndexExpr
Constants ¶
const ( DisallowTypeSets = 1 << 29 // Disallow eliding 'interface' in constraint type sets. DisallowParsing = 1 << 30 // Disallow type parameters entirely. )
'Hidden' parser modes to control the parsing of type-parameter related features.
Functions ¶
func PackIndexExpr ¶
Types ¶
type IndexExpr ¶
type IndexExpr struct { Orig ast.Expr // the wrapped expr, which may be distinct from the IndexListExpr below. *ast.IndexListExpr }
IndexExpr wraps an ast.IndexExpr or ast.IndexListExpr.
Orig holds the original ast.Expr from which this IndexExpr was derived.
func UnpackIndexExpr ¶
Source Files ¶
- Version
- v1.18.5
- Published
- Jul 29, 2022
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 12 minutes ago –
Tools for package owners.