type go/ast.FuncType
32 uses
go/ast (current package)
ast.go#L322: Type *FuncType // function type
ast.go#L460: FuncType struct {
ast.go#L516: func (x *FuncType) Pos() token.Pos {
ast.go#L550: func (x *FuncType) End() token.Pos {
ast.go#L582: func (*FuncType) exprNode() {}
ast.go#L998: Type *FuncType // function signature: type and value parameters, results, and position of "func" keyword
filter.go#L163: case *FuncType:
walk.go#L147: case *FuncType:
go/doc
exports.go#L193: case *ast.FuncType:
go/parser
parser.go#L1097: func (p *parser) parseFuncType() *ast.FuncType {
parser.go#L1109: return &ast.FuncType{Func: pos, Params: params, Results: results}
parser.go#L1143: typ = &ast.FuncType{
parser.go#L1173: typ = &ast.FuncType{Func: token.NoPos, Params: params, Results: results}
parser.go#L2721: case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
parser.go#L2809: Type: &ast.FuncType{
resolver.go#L277: case *ast.FuncType:
resolver.go#L515: func (r *resolver) walkFuncType(typ *ast.FuncType) {
go/printer
nodes.go#L423: case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
nodes.go#L435: func (p *printer) signature(sig *ast.FuncType) {
nodes.go#L531: p.signature(f.Type.(*ast.FuncType)) // don't print "func"
nodes.go#L624: p.signature(f.Type.(*ast.FuncType)) // don't print "func"
nodes.go#L980: case *ast.FuncType:
nodes.go#L1054: case *ast.FuncType:
go/types
expr.go#L248: *ast.FuncType,
expr.go#L1140: case *ast.ArrayType, *ast.StructType, *ast.FuncType,
exprstring.go#L140: case *ast.FuncType:
exprstring.go#L170: func writeSigExpr(buf *bytes.Buffer, sig *ast.FuncType) {
exprstring.go#L205: if sig, _ := f.Type.(*ast.FuncType); sig != nil && iface {
interface.go#L194: if ftyp, _ := f.Type.(*ast.FuncType); ftyp != nil && ftyp.TypeParams != nil {
signature.go#L108: func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
typexpr.go#L350: case *ast.FuncType:
golang.org/x/tools/internal/typesinternal
zerovalue.go#L292: return &ast.FuncType{