package typeparams
Import Path
go/internal/typeparams (on go.dev)
Dependency Relation
imports 2 packages, and imported by 2 packages
Involved Source Files
Package typeparams provides functions to work with type parameter data
stored in the AST, while these AST changes are guarded by a build
constraint.
typeparams.go
Package-Level Type Names (only one, which is exported)
IndexExpr wraps an ast.IndexExpr or ast.IndexListExpr.
Orig holds the original ast.Expr from which this IndexExpr was derived.
IndexListExpr *ast.IndexListExpr
// index expressions
// position of "["
// position of "]"
// expression
// the wrapped expr, which may be distinct from the IndexListExpr below.
( IndexExpr) End() token.Pos
( IndexExpr) Pos() token.Pos
( IndexExpr) exprNode()
IndexExpr : go/ast.Expr
IndexExpr : go/ast.Node
IndexExpr : go/types.positioner
func UnpackIndexExpr(n ast.Node) *IndexExpr
func go/types.(*Checker).funcInst(x *types.operand, ix *IndexExpr)
func go/types.(*Checker).indexExpr(x *types.operand, e *IndexExpr) (isFuncInst bool)
func go/types.(*Checker).instantiatedType(ix *IndexExpr, def *types.Named) (res types.Type)
func go/types.(*Checker).singleIndex(expr *IndexExpr) ast.Expr
Package-Level Functions (total 2, both are exported)
Package-Level Constants (total 2, both are exported)
'Hidden' parser modes to control the parsing of type-parameter related
features.
'Hidden' parser modes to control the parsing of type-parameter related
features.
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)