(op Operator, e Element)
| 231 | } |
| 232 | |
| 233 | func unaryOp(op Operator, e Element) string { |
| 234 | if op == OpExists { |
| 235 | return wrapElement(e) + " != nil" |
| 236 | } |
| 237 | |
| 238 | if op == OpNotExists { |
| 239 | return wrapElement(e) + " = nil" |
| 240 | } |
| 241 | |
| 242 | return op.String() + wrapElement(e) |
| 243 | } |
| 244 | |
| 245 | func wrapElement(e Element) string { |
| 246 | static, ok := e.(Static) |
no test coverage detected