Conside the following code
[Zomp.SyncMethodGenerator.CreateSyncVersion]
internal partial class Foo
{
public async Task FooFooAsync(Bark? bar)
{
await (bar?.BarBarAsync() ?? Task.CompletedTask);
}
}
[Zomp.SyncMethodGenerator.CreateSyncVersion]
internal partial class Bark
{
public async Task BarBarAsync()
{
}
}
It generates the following
internal partial class Foo
{
public void FooFoo(global::LateStartStudio.EmptySpace.SaveGames.Bark? bar)
{
}
}
As we can see, the code inside the method was dropped completely. I expected it to generate bar?.BarBar();
Conside the following code
It generates the following
As we can see, the code inside the method was dropped completely. I expected it to generate
bar?.BarBar();