hasSubOperator returns if the ComparisonOperator is used with a sub-operator.
()
| 397 | |
| 398 | // hasSubOperator returns if the ComparisonOperator is used with a sub-operator. |
| 399 | func (i ComparisonOperator) hasSubOperator() bool { |
| 400 | switch i { |
| 401 | case Any: |
| 402 | case Some: |
| 403 | case All: |
| 404 | default: |
| 405 | return false |
| 406 | } |
| 407 | return true |
| 408 | } |
| 409 | |
| 410 | // ComparisonExpr represents a two-value comparison expression. |
| 411 | type ComparisonExpr struct { |