Update to EAP 138.2458.8
This commit is contained in:
@@ -39,6 +39,7 @@ import org.jetbrains.jet.plugin.codeInsight.CodeInsightUtils
|
|||||||
import com.intellij.psi.PsiDocumentManager
|
import com.intellij.psi.PsiDocumentManager
|
||||||
import org.jetbrains.jet.lang.resolve.calls.callUtil.getResolvedCall
|
import org.jetbrains.jet.lang.resolve.calls.callUtil.getResolvedCall
|
||||||
import org.jetbrains.jet.lang.resolve.DescriptorToSourceUtils
|
import org.jetbrains.jet.lang.resolve.DescriptorToSourceUtils
|
||||||
|
import org.jetbrains.jet.plugin.refactoring.runReadAction
|
||||||
|
|
||||||
public class KotlinSmartStepIntoHandler : JvmSmartStepIntoHandler() {
|
public class KotlinSmartStepIntoHandler : JvmSmartStepIntoHandler() {
|
||||||
|
|
||||||
@@ -191,7 +192,7 @@ public class KotlinSmartStepIntoHandler : JvmSmartStepIntoHandler() {
|
|||||||
override fun locationMatches(process: DebugProcessImpl, location: Location): Boolean {
|
override fun locationMatches(process: DebugProcessImpl, location: Location): Boolean {
|
||||||
if (super.locationMatches(process, location)) return true
|
if (super.locationMatches(process, location)) return true
|
||||||
|
|
||||||
val containingFile = stepTarget.resolvedElement.getContainingFile()
|
val containingFile = runReadAction { stepTarget.resolvedElement.getContainingFile() }
|
||||||
if (containingFile !is JetFile) return false
|
if (containingFile !is JetFile) return false
|
||||||
|
|
||||||
val positionManager = process.getPositionManager()
|
val positionManager = process.getPositionManager()
|
||||||
|
|||||||
-28
@@ -106,32 +106,4 @@ public class KotlinClassWithDelegatedPropertyRenderer : ClassRenderer() {
|
|||||||
val getterName = PropertyCodegen.getterName(Name.identifier(fieldName))
|
val getterName = PropertyCodegen.getterName(Name.identifier(fieldName))
|
||||||
return objRef.referenceType().methodsByName(getterName)?.firstOrNull()
|
return objRef.referenceType().methodsByName(getterName)?.firstOrNull()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun shouldDisplay(context: EvaluationContext, objInstance: ObjectReference, field: Field): Boolean {
|
|
||||||
val isSynthetic = DebuggerUtils.isSynthetic(field)
|
|
||||||
when {
|
|
||||||
!SHOW_SYNTHETICS && isSynthetic,
|
|
||||||
!SHOW_STATIC && field.isStatic(),
|
|
||||||
!SHOW_STATIC_FINAL && field.isStatic() && field.isFinal() -> return false
|
|
||||||
SHOW_VAL_FIELDS_AS_LOCAL_VARIABLES && isSynthetic -> {
|
|
||||||
try {
|
|
||||||
val frameProxy = context.getFrameProxy()
|
|
||||||
if (frameProxy != null) {
|
|
||||||
val location = frameProxy.location()
|
|
||||||
if (location != null &&
|
|
||||||
objInstance == context.getThisObject() &&
|
|
||||||
objInstance.referenceType() == location.declaringType() &&
|
|
||||||
field.name().startsWith(FieldDescriptorImpl.OUTER_LOCAL_VAR_FIELD_PREFIX)
|
|
||||||
) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (ignored: EvaluateException) {
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
else -> return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
+9
@@ -58,6 +58,8 @@ import com.intellij.psi.PsiManager
|
|||||||
import com.intellij.debugger.DebuggerManagerEx
|
import com.intellij.debugger.DebuggerManagerEx
|
||||||
import com.intellij.psi.PsiDocumentManager
|
import com.intellij.psi.PsiDocumentManager
|
||||||
import com.intellij.openapi.application.ModalityState
|
import com.intellij.openapi.application.ModalityState
|
||||||
|
import com.intellij.debugger.ui.tree.render.ClassRenderer
|
||||||
|
import com.intellij.debugger.settings.NodeRendererSettings
|
||||||
|
|
||||||
public abstract class AbstractKotlinEvaluateExpressionTest : KotlinDebuggerTestBase() {
|
public abstract class AbstractKotlinEvaluateExpressionTest : KotlinDebuggerTestBase() {
|
||||||
private val logger = Logger.getLogger(javaClass<KotlinEvaluateExpressionCache>())!!
|
private val logger = Logger.getLogger(javaClass<KotlinEvaluateExpressionCache>())!!
|
||||||
@@ -71,10 +73,15 @@ public abstract class AbstractKotlinEvaluateExpressionTest : KotlinDebuggerTestB
|
|||||||
}
|
}
|
||||||
|
|
||||||
private var oldLogLevel: Level? = null
|
private var oldLogLevel: Level? = null
|
||||||
|
private var oldShowFqTypeNames = false
|
||||||
|
|
||||||
override fun setUp() {
|
override fun setUp() {
|
||||||
super.setUp()
|
super.setUp()
|
||||||
|
|
||||||
|
val classRenderer = NodeRendererSettings.getInstance()!!.getClassRenderer()!!
|
||||||
|
oldShowFqTypeNames = classRenderer.SHOW_FQ_TYPE_NAMES
|
||||||
|
classRenderer.SHOW_FQ_TYPE_NAMES = true
|
||||||
|
|
||||||
oldLogLevel = logger.getLevel()
|
oldLogLevel = logger.getLevel()
|
||||||
logger.setLevel(Level.DEBUG)
|
logger.setLevel(Level.DEBUG)
|
||||||
logger.addAppender(appender)
|
logger.addAppender(appender)
|
||||||
@@ -84,6 +91,8 @@ public abstract class AbstractKotlinEvaluateExpressionTest : KotlinDebuggerTestB
|
|||||||
logger.setLevel(oldLogLevel)
|
logger.setLevel(oldLogLevel)
|
||||||
logger.removeAppender(appender)
|
logger.removeAppender(appender)
|
||||||
|
|
||||||
|
NodeRendererSettings.getInstance()!!.getClassRenderer()!!.SHOW_FQ_TYPE_NAMES = oldShowFqTypeNames
|
||||||
|
|
||||||
super.tearDown()
|
super.tearDown()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<project name="Update Dependencies" default="update">
|
<project name="Update Dependencies" default="update">
|
||||||
<property name="jb.buildserver.build.id" value="4758545"/>
|
<property name="jb.buildserver.build.id" value="4812042"/>
|
||||||
<property name="public.buildserver.build.id" value="163824"/>
|
<property name="public.buildserver.build.id" value="166855"/>
|
||||||
|
|
||||||
<condition property="os.tag" value="win.zip">
|
<condition property="os.tag" value="win.zip">
|
||||||
<os family="windows"/>
|
<os family="windows"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user