From 07dfde4d2deba9c921e7dfd1fc3f3756a0415146 Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Mon, 20 Oct 2014 18:13:19 +0400 Subject: [PATCH] Add comment --- .../jet/plugin/refactoring/extractFunction/extractorUtil.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/extractorUtil.kt b/idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/extractorUtil.kt index ea145cf5454..915eb8812e3 100644 --- a/idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/extractorUtil.kt +++ b/idea/src/org/jetbrains/jet/plugin/refactoring/extractFunction/extractorUtil.kt @@ -516,6 +516,7 @@ fun ExtractableCodeDescriptor.generateDeclaration(options: ExtractionGeneratorOp anchorCandidates.maxBy { it.getTextRange().getStartOffset() }!! } + // Ascend to the level of targetSibling val targetParent = targetSibling.getParent() marginalCandidate.parents().first { it.getParent() == targetParent } }