Minor: add missed paren
This commit is contained in:
committed by
Yan Zhulanow
parent
523bdb0d54
commit
3acb4285ea
+2
-4
@@ -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,3 +1,3 @@
|
||||
map.getOrPut(key, { y ->
|
||||
map.method()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user