go/ast.FieldList.Closing (field)
12 uses
go/ast (current package)
ast.go#L223: Closing token.Pos // position of closing parenthesis/brace, if any
ast.go#L239: if f.Closing.IsValid() {
ast.go#L240: return f.Closing + 1
go/parser
parser.go#L779: Closing: rbrace,
parser.go#L895: return &ast.FieldList{Opening: lparen, List: params, Closing: rparen}
parser.go#L987: Closing: rbrace,
go/printer
nodes.go#L373: if closing := p.lineFor(fields.Closing); 0 < prevLine && prevLine < closing {
nodes.go#L382: p.print(fields.Closing, token.RPAREN)
nodes.go#L442: rbrace := fields.Closing
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1286: if x.Closing != 0 {
encode_ast.gen.go#L1288: e.EncodeInt(int64(x.Closing))
encode_ast.gen.go#L1315: x.Closing = 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. |