Do not show Smart Step Into targets for @InlineOnly callables (KT-33728)
This commit is contained in:
+6
@@ -19,6 +19,7 @@ import org.jetbrains.kotlin.descriptors.*
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.analyze
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.resolveToCall
|
||||
import org.jetbrains.kotlin.idea.codeInsight.DescriptorToSourceUtilsIde
|
||||
import org.jetbrains.kotlin.idea.debugger.breakpoints.isInlineOnly
|
||||
import org.jetbrains.kotlin.idea.project.platform
|
||||
import org.jetbrains.kotlin.idea.util.application.runReadAction
|
||||
import org.jetbrains.kotlin.load.java.isFromJava
|
||||
@@ -185,6 +186,11 @@ class SmartStepTargetVisitor(
|
||||
}
|
||||
}
|
||||
|
||||
// We can't step into @InlineOnly callables as there is no LVT, so skip them
|
||||
if (declaration is KtCallableDeclaration && declaration.isInlineOnly()) {
|
||||
return
|
||||
}
|
||||
|
||||
val callLabel = KotlinMethodSmartStepTarget.calcLabel(descriptor)
|
||||
val label = when (descriptor) {
|
||||
is FunctionInvokeDescriptor -> {
|
||||
|
||||
Reference in New Issue
Block a user