-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing if, while, foreach and using to use SpaceBrace formatting. closes #34
- Loading branch information
Showing
29 changed files
with
430 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
Src/CSharpier.Tests/TestFiles/ElseStatement/ElseStatements.cst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
public class ClassName | ||
{ | ||
public void MethodName() | ||
{ | ||
if (true) | ||
{ | ||
DoIf(); | ||
} | ||
else | ||
{ | ||
DoElse(); | ||
} | ||
|
||
if (true) | ||
{ | ||
DoIf(); | ||
} | ||
else if (false) | ||
{ | ||
DoElse(); | ||
} | ||
|
||
if (true) | ||
{ | ||
DoIf(); | ||
} | ||
else if ( | ||
jklasdfklalsdkfjlkasdflkaslkjfjsdkf | ||
|| kljadsfklaskldflkjasdfklaskjdfjklasdfjlkasdfjlkasdf | ||
) { | ||
DoElse(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
Src/CSharpier.Tests/TestFiles/UsingStatement/BasicUsingStatement.cst
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
Src/CSharpier.Tests/TestFiles/UsingStatement/NestedUsingStatement.cst
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
Src/CSharpier.Tests/TestFiles/UsingStatement/UsingStatementWithExpression.cst
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
Src/CSharpier.Tests/TestFiles/UsingStatement/UsingStatementWithNoBody.cst
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
Src/CSharpier.Tests/TestFiles/UsingStatement/UsingStatements.cst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
class ClassName | ||
{ | ||
void MethodName() | ||
{ | ||
using (var x = BeginScope()) | ||
{ | ||
return; | ||
} | ||
|
||
await using (var x = BeginScope()) | ||
{ | ||
return; | ||
} | ||
|
||
using (var x = BeginScope()) | ||
using (var y = BeginScope()) | ||
{ | ||
return; | ||
} | ||
|
||
using (BeginScope()) | ||
{ | ||
return; | ||
} | ||
|
||
using (BeginScope()) | ||
return; | ||
|
||
using (BeginScope() | ||
.LongerMethod() | ||
.MakeThisThingChain() | ||
.MaybeNow() | ||
.OrNow() | ||
) { | ||
return; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.