type go/ast.FuncDecl
44 uses
go/ast (current package)
ast.go#L1005: FuncDecl struct {
ast.go#L1018: func (d *FuncDecl) Pos() token.Pos { return d.Type.Pos() }
ast.go#L1027: func (d *FuncDecl) End() token.Pos {
ast.go#L1038: func (*FuncDecl) declNode() {}
filter.go#L241: case *FuncDecl:
filter.go#L323: func nameOf(f *FuncDecl) string {
filter.go#L428: if f, isFun := d.(*FuncDecl); isFun {
filter.go#L432: if decls[j] != nil && decls[j].(*FuncDecl).Doc == nil {
scope.go#L127: case *FuncDecl:
walk.go#L322: case *FuncDecl:
go/doc
doc.go#L75: Decl *ast.FuncDecl
example.go#L61: f, ok := decl.(*ast.FuncDecl)
example.go#L155: func playExample(file *ast.File, f *ast.FuncDecl) *ast.File {
example.go#L170: case *ast.FuncDecl:
example.go#L288: case *ast.FuncDecl:
example.go#L304: funcDecl := &ast.FuncDecl{
example.go#L393: case *ast.FuncDecl:
example.go#L434: case *ast.FuncDecl:
example.go#L555: if f, ok := d.(*ast.FuncDecl); ok && isTest(f.Name.Name, "Example") {
exports.go#L304: case *ast.FuncDecl:
reader.go#L70: func (mset methodSet) set(f *ast.FuncDecl, preserveAST bool) {
reader.go#L403: func (r *reader) readFunc(fun *ast.FuncDecl) {
reader.go#L687: if d, ok := decl.(*ast.FuncDecl); ok {
go/parser
parser.go#L2784: func (p *parser) parseFuncDecl() *ast.FuncDecl {
parser.go#L2829: decl := &ast.FuncDecl{
resolver.go#L481: case *ast.FuncDecl:
go/printer
nodes.go#L1920: func (p *printer) funcDecl(d *ast.FuncDecl) {
nodes.go#L1944: case *ast.FuncDecl:
nodes.go#L1959: case *ast.FuncDecl:
printer.go#L1061: case *ast.FuncDecl:
go/types
decl.go#L349: funcDecl struct{ decl *ast.FuncDecl }
decl.go#L401: case *ast.FuncDecl:
resolver.go#L29: fdecl *ast.FuncDecl // func declaration, or nil
go.pact.im/x/plumb/internal/discover
discover.go#L148: case *ast.FuncDecl:
discover.go#L211: case *ast.FuncDecl:
discover.go#L258: func scanFunc(pkg *Package, fd *ast.FuncDecl) ([]*Provider, *diag.Error) {
golang.org/x/tools/go/ast/edge
edge.go#L230: FuncDecl_Body: info[*ast.FuncDecl]("Body"),
edge.go#L231: FuncDecl_Doc: info[*ast.FuncDecl]("Doc"),
edge.go#L232: FuncDecl_Name: info[*ast.FuncDecl]("Name"),
edge.go#L233: FuncDecl_Recv: info[*ast.FuncDecl]("Recv"),
edge.go#L234: FuncDecl_Type: info[*ast.FuncDecl]("Type"),
golang.org/x/tools/go/ast/inspector
typeof.go#L152: case *ast.FuncDecl:
walk.go#L312: case *ast.FuncDecl:
golang.org/x/tools/internal/typesinternal
types.go#L177: case *ast.FuncDecl: