Index: lib/src/source_visitor.dart |
diff --git a/lib/src/source_visitor.dart b/lib/src/source_visitor.dart |
index 93fc4661a6d1d6fc69686faf22611943647fd767..c699bec12639c36adf555a9c7acc77a867509bc0 100644 |
--- a/lib/src/source_visitor.dart |
+++ b/lib/src/source_visitor.dart |
@@ -371,19 +371,21 @@ class SourceVisitor implements AstVisitor { |
visitConditionalExpression(ConditionalExpression node) { |
_writer.nestExpression(); |
visit(node.condition); |
- space(); |
_writer.startSpan(); |
- token(node.question); |
// If we split after one clause in a conditional, always split after both. |
_writer.startMultisplit(); |
_writer.multisplit(nest: true, space: true); |
+ token(node.question); |
+ space(); |
+ |
visit(node.thenExpression); |
- space(); |
- token(node.colon); |
_writer.multisplit(nest: true, space: true); |
+ token(node.colon); |
+ space(); |
+ |
visit(node.elseExpression); |
_writer.endMultisplit(); |