go/ast.SliceExpr.Rbrack (field)
7 uses
go/ast (current package)
ast.go#L349: Rbrack token.Pos // position of "]"
ast.go#L516: func (x *SliceExpr) End() token.Pos { return x.Rbrack + 1 }
go/parser
parser.go#L1255: return &ast.SliceExpr{X: x, Lbrack: lbrack, Low: index[0], High: index[1], Max: index[2], Slice3: slice3, Rbrack: rbrack}
go/printer
nodes.go#L876: p.print(x.Rbrack, token.RBRACK)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L2838: if x.Rbrack != 0 {
encode_ast.gen.go#L2840: e.EncodeInt(int64(x.Rbrack))
encode_ast.gen.go#L2875: x.Rbrack = 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. |