File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
CSharpier.Tests/FormattingTests/TestFiles/cs
CSharpier/SyntaxPrinter/SyntaxNodePrinters Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -119,5 +119,16 @@ class ClassName
119
119
"someLongString________________________________________________________________"
120
120
),
121
121
};
122
+
123
+ (
124
+ someValue switch
125
+ {
126
+ someValue => 1,
127
+ _ => 2,
128
+ }
129
+ )
130
+ .SomeLongMethodCall______________________________()
131
+ .SomeLongMethodCall______________________________()
132
+ .SomeLongMethodCall______________________________();
122
133
}
123
134
}
Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ is LiteralExpressionSyntax
106
106
is ArrayCreationExpressionSyntax
107
107
or ObjectCreationExpressionSyntax { Initializer : not null }
108
108
)
109
+ || groups [ 0 ] . First ( ) . Node
110
+ is ParenthesizedExpressionSyntax { Expression : SwitchExpressionSyntax }
109
111
? expanded
110
112
: Doc . ConditionalGroup ( Doc . Concat ( oneLine ) , expanded ) ;
111
113
}
You can’t perform that action at this time.
0 commit comments