type go/ast.FuncDecl
56 uses
go/ast (current package)
ast.go#L975: FuncDecl struct {
ast.go#L988: func (d *FuncDecl) Pos() token.Pos { return d.Type.Pos() }
ast.go#L997: func (d *FuncDecl) End() token.Pos {
ast.go#L1009: func (*FuncDecl) declNode() {}
filter.go#L242: case *FuncDecl:
filter.go#L319: func nameOf(f *FuncDecl) string {
filter.go#L416: if f, isFun := d.(*FuncDecl); isFun {
filter.go#L420: if decls[j] != nil && decls[j].(*FuncDecl).Doc == nil {
scope.go#L116: case *FuncDecl:
walk.go#L334: case *FuncDecl:
go/doc
doc.go#L71: Decl *ast.FuncDecl
example.go#L61: f, ok := decl.(*ast.FuncDecl)
example.go#L152: func playExample(file *ast.File, f *ast.FuncDecl) *ast.File {
example.go#L167: case *ast.FuncDecl:
example.go#L227: case *ast.FuncDecl:
example.go#L332: case *ast.FuncDecl:
example.go#L355: funcDecl := &ast.FuncDecl{
example.go#L394: if f, ok := d.(*ast.FuncDecl); ok && isTest(f.Name.Name, "Example") {
exports.go#L288: case *ast.FuncDecl:
reader.go#L43: func (mset methodSet) set(f *ast.FuncDecl, preserveAST bool) {
reader.go#L377: func (r *reader) readFunc(fun *ast.FuncDecl) {
reader.go#L599: if d, ok := decl.(*ast.FuncDecl); ok {
go/parser
parser.go#L2432: func (p *parser) parseFuncDecl() *ast.FuncDecl {
parser.go#L2466: decl := &ast.FuncDecl{
go/printer
nodes.go#L1768: func (p *printer) funcDecl(d *ast.FuncDecl) {
nodes.go#L1790: case *ast.FuncDecl:
nodes.go#L1805: case *ast.FuncDecl:
printer.go#L1043: case *ast.FuncDecl:
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1481: func encode_ast_FuncDecl(e *codec.Encoder, x *ast.FuncDecl) {
encode_ast.gen.go#L1508: func decode_ast_FuncDecl(d *codec.Decoder, p **ast.FuncDecl) {
encode_ast.gen.go#L1514: *p = ref.(*ast.FuncDecl)
encode_ast.gen.go#L1517: var x ast.FuncDecl
encode_ast.gen.go#L1543: codec.Register(&ast.FuncDecl{},
encode_ast.gen.go#L1544: func(e *codec.Encoder, x interface{}) { encode_ast_FuncDecl(e, x.(*ast.FuncDecl)) },
encode_ast.gen.go#L1546: var x *ast.FuncDecl
godoc.go#L80: if f, ok := d.(*ast.FuncDecl); ok {
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
idents.go#L155: case *ast.FuncDecl:
linkify.go#L493: if fd, ok := decl.(*ast.FuncDecl); ok && fd.Recv != nil {
linkify.go#L647: case *ast.FuncDecl:
linkify.go#L692: case *ast.FuncDecl:
short_synopsis.go#L19: if _, ok := node.(*ast.FuncDecl); !ok && depth == 0 {
short_synopsis.go#L30: case *ast.FuncDecl:
synopsis.go#L55: case *ast.FuncDecl:
golang.org/x/pkgsite/internal/godoc/internal/doc
doc.go#L84: Decl *ast.FuncDecl
example.go#L61: f, ok := decl.(*ast.FuncDecl)
example.go#L152: func playExample(fset *token.FileSet, file *ast.File, f *ast.FuncDecl) *ast.File {
example.go#L167: case *ast.FuncDecl:
example.go#L266: case *ast.FuncDecl:
example.go#L276: funcDecl := &ast.FuncDecl{
example.go#L341: case *ast.FuncDecl:
example.go#L383: case *ast.FuncDecl:
example.go#L511: if f, ok := d.(*ast.FuncDecl); ok && isTest(f.Name.Name, "Example") {
exports.go#L288: case *ast.FuncDecl:
reader.go#L43: func (mset methodSet) set(f *ast.FuncDecl, preserveAST bool) {
reader.go#L381: func (r *reader) readFunc(fun *ast.FuncDecl) {
reader.go#L603: if d, ok := decl.(*ast.FuncDecl); ok {
 |
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. |