Open agocke opened 3 years ago
Similar (identical?) thing is done here:
But it works as shown by the following test:
I guess a repro may help.
You should be able to repro by passing a local function syntax as the target. I expect the DebuggerDisplay code would have the same problem, but you can't add debugger display on local functions regardless.
Oh so this is very specific to local functions? Will try to give it a look.
ImportAdder
does add the using statement, but it's removed after ReduceAsync
is called. Trying to dig more into this.
When using a normal method:
When using a local function:
The boundParent in the second case should have been BoundAttribute like in the first case.
(Issue should be assigned Area-Compilers instead)
I wrote the following code to add attributes to particular declarations
This generates an attribute correctly for local functions, but the type name is always fully qualified. Declaration forms that are not local functions appear to work correctly.