Suggestion (perhaps): Resolve event accessors differently #23
Labels
No labels
Bug
Feature Request
NR6Pack
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-icsharpcode/NRefactory#23
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, the expression
MyEvent += MyHandleris resolved to a compound AddAssign. This works, but it is a little unintuitive since the semantics is not an addition at all, but it's just syntactic sugar for a method invocation. I guess this also means that find references won't work for event add accessorFailing test:
I would like to keep this consistent with properties, and there I prefer a compound AddAssign over nested calls
set_X(get_X() + ...).Will you use the compound add assign in VB as well (where the syntax is
AddHandler Event, Handler)We don't have any plans for Visual Basic support right now.
We certainly don't have the resources to write a full VB resolver that produces the same detail level as our C# resolver, so we'll probably just write a small resolver that handles the most important constructs. Or maybe we will use Roslyn and not use NR ResolveResults at all for VB.