type go/ast.FuncType
32 uses
go/ast (current package)
ast.go#L310: Type *FuncType // function type
ast.go#L450: FuncType struct {
ast.go#L506: func (x *FuncType) Pos() token.Pos {
ast.go#L540: func (x *FuncType) End() token.Pos {
ast.go#L573: func (*FuncType) exprNode() {}
ast.go#L996: Type *FuncType // function signature: type and value parameters, results, and position of "func" keyword
filter.go#L166: case *FuncType:
walk.go#L171: case *FuncType:
go/doc
exports.go#L198: case *ast.FuncType:
go/parser
parser.go#L988: func (p *parser) parseFuncType() *ast.FuncType {
parser.go#L1000: return &ast.FuncType{Func: pos, Params: params, Results: results}
parser.go#L1034: typ = &ast.FuncType{
parser.go#L1064: typ = &ast.FuncType{Func: token.NoPos, Params: params, Results: results}
parser.go#L2713: case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
parser.go#L2801: Type: &ast.FuncType{
resolver.go#L273: case *ast.FuncType:
resolver.go#L511: func (r *resolver) walkFuncType(typ *ast.FuncType) {
go/printer
nodes.go#L408: case *ast.ArrayType, *ast.StructType, *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
nodes.go#L420: func (p *printer) signature(sig *ast.FuncType) {
nodes.go#L512: p.signature(f.Type.(*ast.FuncType)) // don't print "func"
nodes.go#L601: p.signature(f.Type.(*ast.FuncType)) // don't print "func"
nodes.go#L944: if _, ok := x.Fun.(*ast.FuncType); ok {
nodes.go#L1007: case *ast.FuncType:
go/types
expr.go#L497: *ast.FuncType,
expr.go#L1635: case *ast.ArrayType, *ast.StructType, *ast.FuncType,
exprstring.go#L138: case *ast.FuncType:
exprstring.go#L168: func writeSigExpr(buf *bytes.Buffer, sig *ast.FuncType) {
exprstring.go#L203: if sig, _ := f.Type.(*ast.FuncType); sig != nil && iface {
interface.go#L195: if ftyp, _ := f.Type.(*ast.FuncType); ftyp != nil && ftyp.TypeParams != nil {
signature.go#L102: func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
typexpr.go#L323: case *ast.FuncType:
golang.org/x/tools/internal/typeparams
typeparams_go118.go#L27: func ForFuncType(n *ast.FuncType) *ast.FieldList {