(fnm string)
| 231 | } |
| 232 | |
| 233 | func isAnonymousFunction(fnm string) bool { |
| 234 | // FuncName.funcN indicates that a function was defined anonymously |
| 235 | funcN := len(fnm) > 0 && unicode.IsDigit(rune(fnm[len(fnm)-1])) && strings.Contains(fnm, ".func") |
| 236 | return funcN || fnm == "reflect.makeFuncStub" // used for anonymous functions in yaegi |
| 237 | } |
| 238 | |
| 239 | // setFuncImpl is the underlying implementation of [FuncButton.SetFunc]. |
| 240 | // It should typically not be used by end-user code. |
no test coverage detected