HasSubOperator returns if the ComparisonOperator is used with a sub-operator.
()
| 469 | |
| 470 | // HasSubOperator returns if the ComparisonOperator is used with a sub-operator. |
| 471 | func (i ComparisonOperator) HasSubOperator() bool { |
| 472 | switch i { |
| 473 | case Any: |
| 474 | case Some: |
| 475 | case All: |
| 476 | default: |
| 477 | return false |
| 478 | } |
| 479 | return true |
| 480 | } |
| 481 | |
| 482 | // ComparisonExpr represents a two-value comparison expression. |
| 483 | type ComparisonExpr struct { |