go/ast.IfStmt.If (field)
6 uses
go/ast (current package)
ast.go#L688: If token.Pos // position of "if" keyword
ast.go#L768: func (s *IfStmt) Pos() token.Pos { return s.If }
go/parser
parser.go#L1930: return &ast.IfStmt{If: pos, Init: init, Cond: cond, Body: body, Else: else_}
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1869: if x.If != 0 {
encode_ast.gen.go#L1871: e.EncodeInt(int64(x.If))
encode_ast.gen.go#L1910: x.If = token.Pos(d.DecodeInt())
![]() |
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. |