Introducer Parameter: Fix PsiInvalidElementAccessException

This commit is contained in:
Alexey Sedunov
2015-06-08 20:08:17 +03:00
parent 1d59c7e0e4
commit 8b9ddea729
@@ -225,7 +225,8 @@ public class KotlinInplaceParameterIntroducer(
val originalRange = getExpr().toRange()
return descriptor.copy(
originalRange = originalRange,
occurrencesToReplace = if (replaceAll) getOccurrences().map { it.toRange() } else originalRange.singletonList()
occurrencesToReplace = if (replaceAll) getOccurrences().map { it.toRange() } else originalRange.singletonList(),
newArgumentValue = getExpr()
)
}