go/ast.FuncLit.Type (field)
12 uses
go/ast (current package)
ast.go#L307: Type *FuncType // function type
ast.go#L473: func (x *FuncLit) Pos() token.Pos { return x.Type.Pos() }
walk.go#L97: Walk(v, n.Type)
go/parser
parser.go#L1134: return &ast.FuncLit{Type: typ, Body: body}
go/printer
nodes.go#L800: p.print(x.Type.Pos(), token.FUNC)
nodes.go#L803: p.signature(x.Type.Params, x.Type.Results)
nodes.go#L804: p.funcBody(p.distanceFrom(x.Type.Pos(), startCol), blank, x.Body)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1558: if x.Type != nil {
encode_ast.gen.go#L1560: encode_ast_FuncType(e, x.Type)
encode_ast.gen.go#L1587: decode_ast_FuncType(d, &x.Type)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
synopsis.go#L124: return OneLineNodeDepth(fset, n.Type, depth) + " { ... }"
 |
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. |