Bela VanderVoort
Bela VanderVoort
As of 8/7 with the changes for #345, this can be done by printing `ArrayCreationExpressionSyntax` with `Layout.BreakAfterOperator` in `RightHandSide` But that means we get this, which we don't want ```c#...
#269 is also related to this
This got mostly resolved, so the only part left is to clean up the indentation.
It actually formats really close to that now ```c# var task = Task.Factory.StartNew( async () => { return await new WebClient().DownloadStringTaskAsync( "http://example.comddddddddddddddddddd" ); } ); ``` Prettier formats it like...
Another example ```c# var x = ( cbPasswordBuffer || Constants.MAX_STACKALLOC_BYTES_____________________________________________ ) && true;
Another example ```c# if ( ( resourceClients.Length == 1 && resourceClients[0] == ApplicationProfilesPropertyValues.AllowAllApplications ) || resourceClients.Contains(client.ClientId) ) { client.AllowedScopes.Add(identityResource.Name); }
I think we'd want to indent other binary operators as well. Prettier does this ``` callMethod( first____________, secondWithAdd + someLongName__________________________________________________________, thirdWithAnd && someLongName__________________________________________________________ );
SwitchExpressions will hopefully be handled by this too ```c# return someValue switch { OneMore => "someStrings" + "moreStrings" + "andMoreStrings_________________________________________" }; // should be return someValue switch { OneMore =>...
#37 handled most of this, but if we want the align 2 called out in the above comment, we'll have to do some additional work.
See InterpolatedStringExpressions.cst, one of those test cases may change.