Search: Restrict KtParameter usage scope to its containing declaration
#KT-13542 Fixed #KT-8672 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
// a
|
||||
|
||||
val t = "a"
|
||||
|
||||
fun foo(b: Int) {
|
||||
// b
|
||||
val tt = "b"
|
||||
}
|
||||
|
||||
fun test() = foo(b = 1)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
// a
|
||||
|
||||
val t = "a"
|
||||
|
||||
fun foo(/*rename*/a: Int) {
|
||||
// a
|
||||
val tt = "a"
|
||||
}
|
||||
|
||||
fun test() = foo(a = 1)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "b",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
@@ -251,6 +251,12 @@ public class RenameTestGenerated extends AbstractRenameTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("parameterTextOccurrences/parameterTextOccurrences.test")
|
||||
public void testParameterTextOccurrences_ParameterTextOccurrences() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/rename/parameterTextOccurrences/parameterTextOccurrences.test");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("parameterWithQuotation/parameterWithQuotation.test")
|
||||
public void testParameterWithQuotation_ParameterWithQuotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/rename/parameterWithQuotation/parameterWithQuotation.test");
|
||||
|
||||
Reference in New Issue
Block a user