StripParens strips any parentheses surrounding an expression and returns the inner expression. For instance: 1 -> 1 (1) -> 1 ((1)) -> 1
(expr Expr)
| 287 | // (1) -> 1 |
| 288 | // ((1)) -> 1 |
| 289 | func StripParens(expr Expr) Expr { |
| 290 | if p, ok := expr.(*ParenExpr); ok { |
| 291 | return StripParens(p.Expr) |
| 292 | } |
| 293 | return expr |
| 294 | } |
| 295 | |
| 296 | // ComparisonOperator represents a binary operator. |
| 297 | type ComparisonOperator int |
no outgoing calls
no test coverage detected
searching dependent graphs…