Minor: add missed paren

This commit is contained in:
Vitaliy.Bibaev
2017-11-16 15:59:05 +03:00
committed by Yan Zhulanow
parent 523bdb0d54
commit 3acb4285ea
2 changed files with 3 additions and 5 deletions
@@ -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)
+1 -1
View File
@@ -1,3 +1,3 @@
map.getOrPut(key, { y ->
map.method()
}
})