Finer grained scope selection for Introduce Parameter/etc
In addition to the single occurence/all occurence options I'd like to be able to automatically replace all instances being sent to a the same method or all instances sent to methods that have the same parameter name in their signature. In the sample code below that would be the 4 DoFoo() calls of the 7 DoFoo() and DoBaz() calls when running the Introduce Parameter tool on the bolded true value (2nd DoFoo() call).
public void SomeFunction()
{
DoFoo(1, true);
DoFoo(2, true);
DoFoo(3, true);
DoFoo(4, true);
DoBar("A", true);
DoBar("D", true);
DoBar("W", true);
DoBar("Y", true);
DoBar("R", true);
DoBaz(3.3, true);
DoBaz(3.4, true);
DoBaz(8.3, true);
}
Public DoFoo(int num, bool someBool)
{
}
Public DoBar(string text, bool controlFlag)
{
}
Public DoBaz(double num, bool someBool)
{
}
Please sign in to leave a comment.
Hello Dan
I've logged your request into our tracker: http://youtrack.jetbrains.com/issue/RSRP-288368 and you're welcome to vote for it. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"