go/ast.TypeAssertExpr.Type (field)
10 uses
go/ast (current package)
ast.go#L358: Type Expr // asserted type; nil means type switch X.(type)
walk.go#L131: if n.Type != nil {
walk.go#L132: Walk(v, n.Type)
go/parser
parser.go#L1211: return &ast.TypeAssertExpr{X: x, Type: typ, Lparen: lparen, Rparen: rparen}
parser.go#L1975: return ok && a.Type == nil
go/printer
nodes.go#L823: if x.Type != nil {
nodes.go#L824: p.expr(x.Type)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3090: if x.Type != nil {
encode_ast.gen.go#L3092: e.EncodeAny(x.Type)
encode_ast.gen.go#L3123: x.Type = d.DecodeAny().(ast.Expr)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |