Closed panesofglass closed 6 years ago
@panesofglass This is basically good but we should do the following checking in the ProvidedMethod/ProvidedConstructor/ProvidedProperty construction process
The tests can't be in the ProvidedMethod/ProvidedConstructor/ProvidedProperty constructor itself because the SetMethodAttrs call comes after. Perhaps it has to be when the constructed thing is added to its parent type.
In both cases give a good error message saying that the code parameter is/isn't not allowed.
Add unit tests for these in the test project.
@dsyme I would love to help more on this if possible. Would you be willing to do a pair programming session?
@panesofglass I'll aim to take a look tomorrow
Build is green now
I'm amazed I got within one line!
Will this be merged soon?
Thanks for this!
This is an attempt to resolve #180 by making
invokeCode
an optional parameter onProvidedMethod
.