Extract Function: Extract Function: Fix generation of destructuring declarations
#KT-13010 Fixed
This commit is contained in:
+1
-1
@@ -300,7 +300,7 @@ private fun makeCall(
|
||||
|
||||
val entries = declarationsToMerge.map { p -> p.name + (p.typeReference?.let { ": ${it.text}" } ?: "") }
|
||||
anchorInBlock?.replace(
|
||||
psiFactory.createDeclaration("${if (isVar) "var" else "val"} (${entries.joinToString()}) = $callText")
|
||||
psiFactory.createDestructuringDeclaration("${if (isVar) "var" else "val"} (${entries.joinToString()}) = $callText")
|
||||
)
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user