-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Progress towards properly indenting regions
closes #812
- Loading branch information
Showing
8 changed files
with
110 additions
and
51 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
43 changes: 43 additions & 0 deletions
43
Src/CSharpier.Tests/FormattingTests/TestFiles/Directives_Regions.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,43 @@ | ||
public class ClassName | ||
{ | ||
#region Region | ||
public int LongUglyMethod() => 42; | ||
#endregion | ||
} | ||
|
||
public class ClassName | ||
{ | ||
#region Region | ||
public int LongUglyMethod() => 42; | ||
|
||
#endregion | ||
} | ||
|
||
#region class | ||
public class ClassName | ||
{ | ||
#region method | ||
public void Method() | ||
{ | ||
#region content | ||
#endregion | ||
} | ||
#endregion | ||
} | ||
#endregion | ||
|
||
public class ClassName | ||
{ | ||
#region Region | ||
private int x; // trailing comment here shouldn't give extra indent to the endregion after it | ||
#endregion | ||
|
||
private int y; | ||
|
||
// TODO is this a real thing? | ||
string RegionsIndentAndNewLineProperly = | ||
#region one | ||
@"using System;" | ||
#endregion one | ||
; | ||
} |
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