Precondition: !isInterface(T). EXCLUSIVE_LOCKS_REQUIRED(prog.methodsMu)
(T Type)
| 59 | // Precondition: !isInterface(T). |
| 60 | // EXCLUSIVE_LOCKS_REQUIRED(prog.methodsMu) |
| 61 | func (prog *Program) createMethodSet(T Type) *ssaMethodSet { |
| 62 | mset, ok := prog.methodSets.At(T).(*ssaMethodSet) |
| 63 | if !ok { |
| 64 | mset = &ssaMethodSet{mapping: make(map[string]*Function)} |
| 65 | prog.methodSets.Set(T, mset) |
| 66 | } |
| 67 | return mset |
| 68 | } |
| 69 | |
| 70 | // EXCLUSIVE_LOCKS_REQUIRED(prog.methodsMu) |
| 71 | func (prog *Program) addMethod(mset *ssaMethodSet, sel *Selection) *Function { |
no test coverage detected