We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed204e9 commit 7087f10Copy full SHA for 7087f10
idea/src/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinCodeFragmentFactory.kt
@@ -412,6 +412,6 @@ class KotlinCodeFragmentFactory: CodeFragmentFactory() {
412
}
413
})
414
415
- return getContextElement(codeFragment.findElementAt(codeFragment.text.length - 5)) as? KtElement
+ return codeFragment.getContentElement().statements.lastOrNull()
416
417
0 commit comments