needMethodsOf ensures that runtime type information (including the complete method set) is available for the specified type T and all its subcomponents. needMethodsOf must be called for at least every type that is an operand of some MakeInterface instruction, and for the type of every exported pack
(T Type)
| 140 | // EXCLUSIVE_LOCKS_ACQUIRED(prog.methodsMu) |
| 141 | // |
| 142 | func (prog *Program) needMethodsOf(T Type) { |
| 143 | prog.methodsMu.Lock() |
| 144 | prog.needMethods(T, false) |
| 145 | prog.methodsMu.Unlock() |
| 146 | } |
| 147 | |
| 148 | // Precondition: T is not a method signature (*Signature with Recv()!=nil). |
| 149 | // Recursive case: skip => don't create methods for T. |
no test coverage detected