go/ast.SwitchStmt.Tag (field)
8 uses
go/ast (current package)
ast.go#L707: Tag Expr // tag expression; or nil
walk.go#L244: if n.Tag != nil {
walk.go#L245: Walk(v, n.Tag)
go/parser
parser.go#L2054: return &ast.SwitchStmt{Switch: pos, Init: s1, Tag: p.makeExpr(s2, "switch expression"), Body: body}
go/printer
nodes.go#L1356: p.controlClause(false, s.Init, s.Tag, nil)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3023: if x.Tag != nil {
encode_ast.gen.go#L3025: e.EncodeAny(x.Tag)
encode_ast.gen.go#L3056: x.Tag = 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. |