go/ast.FuncDecl.Body (field)
25 uses
go/ast (current package)
ast.go#L1010: Body *BlockStmt // function body; or nil for external (non-Go) function
ast.go#L1028: if d.Body != nil {
ast.go#L1029: return d.Body.End()
walk.go#L331: if n.Body != nil {
walk.go#L332: Walk(v, n.Body)
go/doc
example.go#L80: if f.Body == nil { // ast.File.Body nil dereference (see issue 28044)
example.go#L87: output, unordered, hasOutput := exampleOutput(f.Body, file.Comments)
example.go#L91: Code: f.Body,
example.go#L156: body := f.Body
example.go#L307: Body: body,
example.go#L401: if d.Body != nil {
example.go#L402: ast.Inspect(d.Body, inspectFunc)
example.go#L559: newF.Body, comments = stripOutputComment(f.Body, comments)
reader.go#L406: fun.Body = nil
go/parser
parser.go#L2839: Body: body,
resolver.go#L503: r.walkBody(n.Body)
go/printer
nodes.go#L1934: p.funcBody(p.distanceFrom(d.Pos(), startCol), vtab, d.Body)
go/types
decl.go#L830: if fdecl.Type.TypeParams.NumFields() > 0 && fdecl.Body == nil {
decl.go#L836: if !check.conf.IgnoreFuncBodies && fdecl.Body != nil {
decl.go#L838: check.funcBody(decl, obj.name, sig, fdecl.Body, nil)
resolver.go#L38: return d.init != nil || d.fdecl != nil && d.fdecl.Body != nil
resolver.go#L428: if d.decl.Body == nil {
golang.org/x/tools/go/ast/inspector
walk.go#L321: if n.Body != nil {
walk.go#L322: walk(v, edge.FuncDecl_Body, -1, n.Body)