assign.right->visit(*this);
}
+void Formatter::visit(TernaryExpression &ternary)
+{
+ ternary.condition->visit(*this);
+ append(ternary.oper->token);
+ ternary.true_expr->visit(*this);
+ if(ternary.oper->token[0]=='?')
+ append(':');
+ ternary.false_expr->visit(*this);
+}
+
void Formatter::visit(FunctionCall &call)
{
append(format("%s(", call.name));