maca88 / AsyncGenerator

Generating async c# code using Roslyn
MIT License
47 stars 16 forks source link

Avoid calling obsolete async methods #142

Closed maca88 closed 4 years ago

maca88 commented 4 years ago

Example:

public IEnumerable<int> Call(ObsoleteInterface obsolete)
{
  if (obsolete != null)
  {
    return obsolete.Test();
  }

  return obsolete.Test();
}

Expected: CallAsync should not be generated. Actual: CallAsync is generated.