mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-27 16:20:09 +01:00
Update IfExpression to follow AST conventions (#1167)
This commit is contained in:
@@ -161,9 +161,8 @@ void Expression::Print(llvm::raw_ostream& out) const {
|
||||
break;
|
||||
case ExpressionKind::IfExpression: {
|
||||
const auto& if_expr = cast<IfExpression>(*this);
|
||||
out << "if " << *if_expr.condition() << " then "
|
||||
<< *if_expr.then_expression() << " else "
|
||||
<< *if_expr.else_expression();
|
||||
out << "if " << if_expr.condition() << " then "
|
||||
<< if_expr.then_expression() << " else " << if_expr.else_expression();
|
||||
break;
|
||||
}
|
||||
case ExpressionKind::UnimplementedExpression: {
|
||||
|
||||
Reference in New Issue
Block a user