Browse Source

Fix indentation

pull/1066/head
Daniel Grunwald 8 years ago
parent
commit
971e36e7f0
  1. 6
      ICSharpCode.Decompiler.Tests/TestCases/Correctness/NullPropagation.cs
  2. 4
      ICSharpCode.Decompiler/IL/Transforms/NullPropagationTransform.cs

6
ICSharpCode.Decompiler.Tests/TestCases/Correctness/NullPropagation.cs

@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
{
class NullPropagation
{
class NullPropagation
{
static void Main()
{
new NullPropagation().TestNotCoalescing();
@ -25,5 +25,5 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness @@ -25,5 +25,5 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
{
return c != null ? c.Text : "Hello";
}
}
}
}

4
ICSharpCode.Decompiler/IL/Transforms/NullPropagationTransform.cs

@ -28,8 +28,8 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -28,8 +28,8 @@ namespace ICSharpCode.Decompiler.IL.Transforms
/// <summary>
/// Transform that converts code patterns like "v != null ? v.M() : null" to "v?.M()"
/// </summary>
struct NullPropagationTransform
{
struct NullPropagationTransform
{
internal static bool IsProtectedIfInst(IfInstruction ifInst)
{
// We exclude logic.and to avoid turning

Loading…
Cancel
Save