zompinc / sync-method-generator

Generates a synchronized version of an async method
MIT License
48 stars 4 forks source link

Ignore call to `AsTask` method #62

Closed skarllot closed 6 months ago

skarllot commented 6 months ago

The calls of AsTask method from ValueTask struct should be ignored.

private ValueTask<int> OtherMethodAsync() => // ...

public Task<int> MyMethod() => OtherMethodAsync().AsTask();