Closed adam-kimmorley-leverage closed 1 year ago
Ok, that took way longer than I hoped for, but life took a toll. I just uploaded 1.4.x - which should fix this problem. Your idea works, but I needed some more code to handle default and null parameters, which are treated differently by Roslyn.
Hi, I love your work, this is an awesome time saver. There seems to be an issue when generating a method with optional parameters, the generated code doesn't have the default values. I'm not sure what I'm doing, when I downloaded the code and ran the tests they all failed, so just going to post the code I got working here... In GeneratorTests.cs I added....
And in AutomaticInterface.cs in te AddMethodsToInterface method I changed line 163 to
That worked but I have no idea if that's the right way or if it will break something else., hopefully it's helpful