go/ast.FuncDecl.Body (field)
29 uses
go/ast (current package)
ast.go#L980: Body *BlockStmt // function body; or nil for external (non-Go) function
ast.go#L998: if d.Body != nil {
ast.go#L999: return d.Body.End()
walk.go#L343: if n.Body != nil {
walk.go#L344: Walk(v, n.Body)
go/doc
example.go#L77: if f.Body == nil { // ast.File.Body nil dereference (see issue 28044)
example.go#L84: output, unordered, hasOutput := exampleOutput(f.Body, file.Comments)
example.go#L88: Code: f.Body,
example.go#L153: body := f.Body
example.go#L240: ast.Inspect(d.Body, inspectFunc)
example.go#L358: Body: body,
example.go#L398: newF.Body, comments = stripOutputComment(f.Body, comments)
reader.go#L380: fun.Body = nil
go/parser
parser.go#L2475: Body: body,
go/printer
nodes.go#L1781: p.funcBody(p.distanceFrom(d.Pos(), startCol), vtab, d.Body)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1501: if x.Body != nil {
encode_ast.gen.go#L1503: encode_ast_BlockStmt(e, x.Body)
encode_ast.gen.go#L1534: decode_ast_BlockStmt(d, &x.Body)
godoc.go#L88: f.Body = nil
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L77: if f.Body == nil { // ast.File.Body nil dereference (see issue 28044)
example.go#L84: output, unordered, hasOutput := exampleOutput(f.Body, file.Comments)
example.go#L88: Code: f.Body,
example.go#L153: body := f.Body
example.go#L279: Body: body,
example.go#L354: ast.Inspect(d.Body, inspectFunc)
example.go#L515: newF.Body, comments = stripOutputComment(f.Body, comments)
reader.go#L384: fun.Body = nil
 |
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. |