-
-
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.
closes #58
- Loading branch information
Showing
13 changed files
with
80 additions
and
89 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
4 changes: 0 additions & 4 deletions
4
Src/CSharpier.Tests/TestFiles/MethodDeclaration/BasicMethod.cst
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
Src/CSharpier.Tests/TestFiles/MethodDeclaration/ExplicitlyInterfaceSpecifierMethod.cst
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
Src/CSharpier.Tests/TestFiles/MethodDeclaration/LongMethodWithParameters.cst
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
Src/CSharpier.Tests/TestFiles/MethodDeclaration/MethodComments.cst
This file was deleted.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
Src/CSharpier.Tests/TestFiles/MethodDeclaration/MethodDeclarations.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,57 @@ | ||
public class ClassName | ||
{ | ||
public void DoStuff() { } | ||
|
||
public void LongMethodNameForceLineBreak( | ||
string oneoneoneoneoneoneoneoneone, | ||
string twotwotwotwotwotwotwotwo, | ||
string threethreethreethreethreethree | ||
) { | ||
return; | ||
} | ||
|
||
public void LongMethodNameForceLineBreakasdfasdfasfasdf( | ||
string one, | ||
string two, | ||
string three | ||
) { } | ||
|
||
public void DoStuff( | ||
// leading | ||
string one, // trailing | ||
string two, | ||
string three | ||
) { | ||
var x = 0; | ||
} | ||
|
||
public void DoStuff(string one, string two) { } | ||
|
||
public void DoStuff() | ||
{ | ||
DoStuff(); | ||
DoStuff(); | ||
} | ||
|
||
private Doc MethodWithParameters( | ||
SomeClass one, | ||
SomeClass two, | ||
SomeClass three | ||
) => CallSomethingElseWithALongNameThatForcesABreak(one, two, three); | ||
|
||
private Doc ShortMethod() => Method(); | ||
|
||
private Doc ShortishMethod(SomeClass one) => | ||
CallSomeOtherLongMethodSoThatItBreaks(one); | ||
|
||
private Doc MethodWithParameters( | ||
SomeClass one, | ||
SomeClass two, | ||
SomeClass three | ||
) => CallSomething(one, two, three); | ||
} | ||
|
||
class ExplicitInterfaceSpecifier : IDisposable | ||
{ | ||
void IDisposable.Dispose() { } | ||
} |
4 changes: 0 additions & 4 deletions
4
Src/CSharpier.Tests/TestFiles/MethodDeclaration/MethodWithParameters.cst
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
Src/CSharpier.Tests/TestFiles/MethodDeclaration/MethodWithStatements.cst
This file was deleted.
Oops, something went wrong.
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