Func Func collects information about a go func/method.
| 361 | |
| 362 | // Func collects information about a go func/method. |
| 363 | type Func struct { |
| 364 | pkg *Package |
| 365 | sig *Signature |
| 366 | typ types.Type |
| 367 | obj types.Object |
| 368 | name string |
| 369 | |
| 370 | id string |
| 371 | doc string |
| 372 | ret types.Type // return type, if any |
| 373 | err bool // true if original go func has comma-error |
| 374 | ctor bool // true if this is a newXXX function |
| 375 | hasfun bool // true if this function has a function argument |
| 376 | isVariadic bool // True, if this is a variadic function. |
| 377 | } |
| 378 | |
| 379 | func newFuncFrom(p *Package, parent string, obj types.Object, sig *types.Signature) (*Func, error) { |
| 380 | ret, haserr, hasfun, err := isPyCompatFunc(sig) |
nothing calls this directly
no outgoing calls
no test coverage detected