diff --git a/idea/idea-jvm/src/com/intellij/debugger/streams/kotlin/trace/dsl/KotlinMapVariable.kt b/idea/idea-jvm/src/com/intellij/debugger/streams/kotlin/trace/dsl/KotlinMapVariable.kt index dad0fcf7c50..db04ad551af 100644 --- a/idea/idea-jvm/src/com/intellij/debugger/streams/kotlin/trace/dsl/KotlinMapVariable.kt +++ b/idea/idea-jvm/src/com/intellij/debugger/streams/kotlin/trace/dsl/KotlinMapVariable.kt @@ -1,9 +1,7 @@ // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.streams.kotlin.trace.dsl -import com.intellij.debugger.streams.trace.dsl.Expression -import com.intellij.debugger.streams.trace.dsl.Lambda -import com.intellij.debugger.streams.trace.dsl.VariableDeclaration +import com.intellij.debugger.streams.trace.dsl.* import com.intellij.debugger.streams.trace.dsl.impl.TextExpression import com.intellij.debugger.streams.trace.dsl.impl.common.MapVariableBase import com.intellij.debugger.streams.trace.impl.handler.type.MapType @@ -24,7 +22,7 @@ class KotlinMapVariable(type: MapType, name: String) : MapVariableBase(type, nam override fun keys(): Expression = TextExpression("${toCode()}.keys") override fun computeIfAbsent(key: Expression, supplier: Lambda): Expression = - TextExpression("${toCode()}.getOrPut(${key.toCode()}, ${supplier.toCode()}") + TextExpression("${toCode()}.getOrPut(${key.toCode()}, ${supplier.toCode()})") override fun defaultDeclaration(isMutable: Boolean): VariableDeclaration = KotlinVariableDeclaration(this, false, type.defaultValue) diff --git a/idea/testData/debugger/sequence/dsl/mapComputeIfAbsent.out b/idea/testData/debugger/sequence/dsl/mapComputeIfAbsent.out index 4122060696f..6fc7016b5db 100644 --- a/idea/testData/debugger/sequence/dsl/mapComputeIfAbsent.out +++ b/idea/testData/debugger/sequence/dsl/mapComputeIfAbsent.out @@ -1,3 +1,3 @@ map.getOrPut(key, { y -> map.method() -} +})