UnaryOp is a unary operator.
| 58 | |
| 59 | // UnaryOp is a unary operator. |
| 60 | type UnaryOp struct { |
| 61 | Typ *types.T |
| 62 | ReturnType *types.T |
| 63 | EvalOp UnaryEvalOp |
| 64 | Volatility volatility.V |
| 65 | |
| 66 | types TypeList |
| 67 | retType ReturnTyper |
| 68 | |
| 69 | // OnTypeCheck is called when the op is type checked. |
| 70 | OnTypeCheck func() |
| 71 | } |
| 72 | |
| 73 | func (op *UnaryOp) params() TypeList { |
| 74 | return op.types |
nothing calls this directly
no outgoing calls
no test coverage detected