Browse Source

Merge pull request #552 from icsharpcode/revert-487-case/empty-async-method

Revert "Fixed decompiling empty async methods."
pull/569/head
Siegfried Pammer 10 years ago
parent
commit
054f2a1729
  1. 3
      ICSharpCode.Decompiler/ILAst/StateRange.cs
  2. 4
      ICSharpCode.Decompiler/Tests/Async.cs

3
ICSharpCode.Decompiler/ILAst/StateRange.cs

@ -212,9 +212,6 @@ namespace ICSharpCode.Decompiler.ILAst @@ -212,9 +212,6 @@ namespace ICSharpCode.Decompiler.ILAst
case ILCode.Br:
case ILCode.Leave:
ranges[(ILLabel)expr.Operand].UnionWith(nodeRange);
if (i == bodyLength - 1)
// no states
goto default;
break;
case ILCode.Brtrue:
{

4
ICSharpCode.Decompiler/Tests/Async.cs

@ -25,10 +25,6 @@ using System.Threading.Tasks; @@ -25,10 +25,6 @@ using System.Threading.Tasks;
public class Async
{
public async void EmptyAsyncMethod()
{
}
public async void SimpleVoidMethod()
{
Console.WriteLine("Before");

Loading…
Cancel
Save