From 872cb225f06859fac24462551b63c162bd9da527 Mon Sep 17 00:00:00 2001 From: "Vitaliy.Bibaev" Date: Thu, 16 Nov 2017 16:36:57 +0300 Subject: [PATCH] Specify all types as nullable (temporary solution) --- .../streams/kotlin/psi/impl/KotlinChainTransformerImpl.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/idea/idea-jvm/src/com/intellij/debugger/streams/kotlin/psi/impl/KotlinChainTransformerImpl.kt b/idea/idea-jvm/src/com/intellij/debugger/streams/kotlin/psi/impl/KotlinChainTransformerImpl.kt index f31f27f012a..0f3d4e84c83 100644 --- a/idea/idea-jvm/src/com/intellij/debugger/streams/kotlin/psi/impl/KotlinChainTransformerImpl.kt +++ b/idea/idea-jvm/src/com/intellij/debugger/streams/kotlin/psi/impl/KotlinChainTransformerImpl.kt @@ -26,13 +26,13 @@ class KotlinChainTransformerImpl : ChainTransformer { val qualifier = if (parent is KtDotQualifiedExpression) QualifierExpressionImpl(parent.receiverExpression.text, parent.receiverExpression.textRange, KotlinTypes.ANY) else - QualifierExpressionImpl("", TextRange.EMPTY_RANGE, KotlinTypes.ANY) // This possible only when this inherits Stream + QualifierExpressionImpl("", TextRange.EMPTY_RANGE, KotlinTypes.nullable { KotlinTypes.ANY }) // This is possible only when this inherits Stream val intermediateCalls = mutableListOf() for (call in callChain.subList(0, callChain.size - 1)) { intermediateCalls += IntermediateStreamCallImpl(call.callName(), call.valueArguments.map { it.toCallArgument() }, - KotlinTypes.ANY, KotlinTypes.ANY, + KotlinTypes.nullable { KotlinTypes.ANY }, KotlinTypes.nullable { KotlinTypes.ANY }, call.textRange) } @@ -40,7 +40,7 @@ class KotlinChainTransformerImpl : ChainTransformer { // TODO: infer true types val terminationCall = TerminatorStreamCallImpl(terminationsPsiCall.callName(), terminationsPsiCall.valueArguments.map { it.toCallArgument() }, - KotlinTypes.ANY, KotlinTypes.ANY, + KotlinTypes.nullable { KotlinTypes.ANY }, KotlinTypes.nullable { KotlinTypes.ANY }, terminationsPsiCall.textRange) return StreamChainImpl(qualifier, intermediateCalls, terminationCall, context)