'Convert to extension method call' does not add required parenthesis #403

Open
opened 2014-05-02 09:52:26 -05:00 by dgrunwald · 0 comments
dgrunwald commented 2014-05-02 09:52:26 -05:00 (Migrated from github.com)

Converting

ExtensionMethods.VisualAncestorsAndSelf(e.OriginalSource as DependencyObject)

to extension method syntax should result in:

(e.OriginalSource as DependencyObject).VisualAncestorsAndSelf()

but NRefactory currently produces

e.OriginalSource as DependencyObject.VisualAncestorsAndSelf()

If possible, this should be fixed in the Script helper class instead of dealing with this problem in each refactoring individually.

Converting ``` ExtensionMethods.VisualAncestorsAndSelf(e.OriginalSource as DependencyObject) ``` to extension method syntax should result in: ``` (e.OriginalSource as DependencyObject).VisualAncestorsAndSelf() ``` but NRefactory currently produces ``` e.OriginalSource as DependencyObject.VisualAncestorsAndSelf() ``` If possible, this should be fixed in the `Script` helper class instead of dealing with this problem in each refactoring individually.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/NRefactory#403
No description provided.