Minor: reformat
This commit is contained in:
@@ -31,7 +31,7 @@ import org.jetbrains.org.objectweb.asm.Type
|
|||||||
import java.util.ArrayList
|
import java.util.ArrayList
|
||||||
|
|
||||||
class SwitchCodegenProvider
|
class SwitchCodegenProvider
|
||||||
private constructor (
|
private constructor(
|
||||||
private val bindingContext: BindingContext,
|
private val bindingContext: BindingContext,
|
||||||
private val shouldInlineConstVals: Boolean,
|
private val shouldInlineConstVals: Boolean,
|
||||||
private val codegen: ExpressionCodegen?
|
private val codegen: ExpressionCodegen?
|
||||||
@@ -44,7 +44,8 @@ private constructor (
|
|||||||
entry.conditions.all { condition ->
|
entry.conditions.all { condition ->
|
||||||
if (condition !is KtWhenConditionWithExpression) return false
|
if (condition !is KtWhenConditionWithExpression) return false
|
||||||
val patternExpression = condition.expression ?: return false
|
val patternExpression = condition.expression ?: return false
|
||||||
val constant = ExpressionCodegen.getCompileTimeConstant(patternExpression, bindingContext, shouldInlineConstVals) ?: return false
|
val constant =
|
||||||
|
ExpressionCodegen.getCompileTimeConstant(patternExpression, bindingContext, shouldInlineConstVals) ?: return false
|
||||||
predicate.invoke(constant)
|
predicate.invoke(constant)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user