File tree Expand file tree Collapse file tree
CSharpier.Core/CSharp/SyntaxPrinter/SyntaxNodePrinters
CSharpier.Tests/FormattingTests/TestFiles/cs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,10 @@ is ArrayCreationExpressionSyntax
111111 or ObjectCreationExpressionSyntax { Initializer : not null }
112112 )
113113 || groups [ 0 ] . First ( ) . Node
114- is ParenthesizedExpressionSyntax { Expression : SwitchExpressionSyntax }
114+ is ParenthesizedExpressionSyntax
115+ {
116+ Expression : SwitchExpressionSyntax or QueryExpressionSyntax
117+ }
115118 || (
116119 parent is ExpressionStatementSyntax expressionStatementSyntax
117120 && expressionStatementSyntax . SemicolonToken . LeadingTrivia . Any ( o => o . IsComment ( ) )
Original file line number Diff line number Diff line change @@ -98,5 +98,18 @@ class ClassName
9898 let i2 = i * i
9999 where i2 < 100
100100 select new { Square = i2, Root = i };
101+
102+ (
103+ from x in SomeMethod()
104+ select """
105+ someString
106+ """
107+ )
108+ .CallMethod_____________________________________________()
109+ .CallMethod_____________________________________________();
110+
111+ (from x in SomeMethod() select "someString")
112+ .CallMethod_____________________________________________()
113+ .CallMethod_____________________________________________();
101114 }
102115}
You can’t perform that action at this time.
0 commit comments