Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-14075: Extend MethodParemeters Class (see #11019)

$
0
0
Reporter Amir Kolsky (kolsky) Amir Kolsky (kolsky)
Created Aug 5, 2006 8:19:15 PM
Updated Apr 19, 2018 5:13:54 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
See: http://www.intellij.net/tracker/resharper/viewSCR?publicId=11019

Given
public class SomeFunctionClass
{
public double X;
...
}

public void SomeMethod(SomeMethodParameters params, int i)
{
Use(i);
...
}
I can add a method parameter:
public void SomeMethod(SomeMethodParameters params) {...}

It would be nice to add a context action to add the new parameter to the parameter class:
public class SomeFunctionClass
{
public double X;
...
public int i; // <--------- new parameter
}

public void SomeMethod(SomeMethodParameters params, int i)
{
Use(params.i);
...
}
(assuming i is not already in the parameters class...)

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>