declaredFunc returns the concrete function/method denoted by obj. Panic ensues if there is none.
(obj *Func)
| 117 | // Panic ensues if there is none. |
| 118 | // |
| 119 | func (prog *Program) declaredFunc(obj *Func) *Function { |
| 120 | if v := prog.packageLevelValue(obj); v != nil { |
| 121 | return v.(*Function) |
| 122 | } |
| 123 | panic("no concrete method: " + obj.String()) |
| 124 | } |
| 125 | |
| 126 | // needMethodsOf ensures that runtime type information (including the |
| 127 | // complete method set) is available for the specified type T and all |
no test coverage detected