( ops map[UnaryOperatorSymbol]*UnaryOpOverloads, )
| 91 | } |
| 92 | |
| 93 | func unaryOpFixups( |
| 94 | ops map[UnaryOperatorSymbol]*UnaryOpOverloads, |
| 95 | ) map[UnaryOperatorSymbol]*UnaryOpOverloads { |
| 96 | for _, overload := range ops { |
| 97 | for _, impl := range overload.overloads { |
| 98 | impl.types = ParamTypes{{"arg", impl.Typ}} |
| 99 | impl.retType = FixedReturnType(impl.ReturnType) |
| 100 | } |
| 101 | } |
| 102 | return ops |
| 103 | } |
| 104 | |
| 105 | // UnaryOpOverloads is an overloaded set of unary operator implementations. |
| 106 | // It implements overloadSet. |
no test coverage detected
searching dependent graphs…