package typeparams
Import Path
go/internal/typeparams (on go.dev)
Dependency Relation
imports 2 packages, and imported by 2 packages
Involved Source Files
typeparams.go
Package-Level Type Names (only one)
IndexExpr wraps an ast.IndexExpr or ast.IndexListExpr.
Orig holds the original ast.Expr from which this IndexExpr was derived.
Note: IndexExpr (intentionally) does not wrap ast.Expr, as that leads to
accidental misuse such as encountered in golang/go#63933.
TODO(rfindley): remove this helper, in favor of just having a helper
function that returns indices.
// index expressions
// position of "["
// the wrapped expr, which may be distinct from the IndexListExpr below.
// position of "]"
// expression
(*IndexExpr) Pos() token.Pos
func UnpackIndexExpr(n ast.Node) *IndexExpr
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |