forked from belav/csharpier
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing a few more edge cases with trailing comments caught by csharpi… (
belav#1319) …er-repos formatting
- Loading branch information
Showing
7 changed files
with
108 additions
and
43 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
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
81 changes: 81 additions & 0 deletions
81
Src/CSharpier.Tests/FormattingTests/TestFiles/cs/TrailingComma_Directives.test
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,81 @@ | ||
int[] someArray = | ||
[ | ||
1 | ||
#if DEBUG | ||
, | ||
2 | ||
#endif | ||
]; | ||
|
||
int[] someArray = | ||
[ | ||
1 | ||
#if !DEBUG | ||
, | ||
2 | ||
#endif | ||
]; | ||
|
||
int[] someArray = | ||
[ | ||
1, | ||
#if DEBUG | ||
2 | ||
#endif | ||
]; | ||
|
||
int[] someArray = | ||
[ | ||
1, | ||
#if !DEBUG | ||
2 | ||
#endif | ||
]; | ||
|
||
public class ClassName | ||
{ | ||
private SomeCollection someCollection = new SomeCollection() | ||
{ | ||
new SomeValue(), | ||
#if DEBUG | ||
new SomeValue(), | ||
new SomeValue() | ||
#endif | ||
}; | ||
|
||
private SomeCollection someCollection = new SomeCollection() | ||
{ | ||
new SomeValue() | ||
#if DEBUG | ||
, | ||
new SomeValue(), | ||
new SomeValue() | ||
#endif | ||
}; | ||
} | ||
|
||
public enum SomeEnum | ||
{ | ||
Value1 | ||
#if DEBUG | ||
, | ||
Value2, | ||
#endif | ||
} | ||
|
||
public enum SomeEnum | ||
{ | ||
Value1, | ||
#if DEBUG | ||
Value2, | ||
#endif | ||
} | ||
|
||
public enum SomeEnum | ||
{ | ||
Value1, | ||
#if DEBUG | ||
Value2, | ||
#endif | ||
Value3, | ||
} |
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