if (expr instanceof GoParenthesisedExpression) {
return String.format("(%s)", flip(((GoParenthesisedExpression) expr).getInnerExpression()));
}
if (expr instanceof GoUnaryExpression) {
GoUnaryExpression ue = (GoUnaryExpression) expr;
if (ue.getUnaryOp() == GoUnaryExpression.Op.Not) {
return ue.getExpression().getText();
}
}
if (expr instanceof GoRelationalExpression) {
GoRelationalExpression relationalExpr = (GoRelationalExpression) expr;