Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1135 | |
| 1136 | // Format implements the NodeFormatter interface. |
| 1137 | func (node *BinaryExpr) Format(ctx *FmtCtx) { |
| 1138 | binExprFmtWithParen(ctx, node.Left, node.Operator.String(), node.Right, node.Operator.Symbol.IsPadded()) |
| 1139 | } |
| 1140 | |
| 1141 | // UnaryOperator represents a unary operator used in a UnaryExpr. |
| 1142 | type UnaryOperator struct { |
nothing calls this directly
no test coverage detected