From df7bbf707b38087c23ffe6ceb880c8cf4f708629 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Thu, 6 Dec 2018 15:58:10 +0900 Subject: [PATCH] Refactoring: Rename a function to 'getArgumentsForEvaluation()' --- .../idea/debugger/evaluate/KotlinEvaluationBuilder.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinEvaluationBuilder.kt b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinEvaluationBuilder.kt index 18da8496911..6d3ca00a616 100644 --- a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinEvaluationBuilder.kt +++ b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinEvaluationBuilder.kt @@ -325,7 +325,7 @@ class KotlinEvaluator(val codeFragment: KtCodeFragment, val sourcePosition: Sour // Prepare the main class val argumentTypes = Type.getArgumentTypes(methodToInvoke.desc) - val args = context.getArgumentsForEval4j(compiledData.parameters, argumentTypes) + val args = context.getArgumentsForEvaluation(compiledData.parameters, argumentTypes) .zip(argumentTypes) .map { (value, type) -> // Make argument type classes prepared for sure @@ -358,7 +358,7 @@ class KotlinEvaluator(val codeFragment: KtCodeFragment, val sourcePosition: Sour // Maybe just take the single method from the class, as it is done in 'evaluateWithCompilation' if (name == GENERATED_FUNCTION_NAME || name.startsWith(GENERATED_FUNCTION_NAME + "-")) { val argumentTypes = Type.getArgumentTypes(desc) - val args = context.getArgumentsForEval4j(compiledData.parameters, argumentTypes) + val args = context.getArgumentsForEvaluation(compiledData.parameters, argumentTypes) return object : MethodNode(Opcodes.API_VERSION, access, name, desc, signature, exceptions) { override fun visitEnd() { @@ -501,7 +501,7 @@ class KotlinEvaluator(val codeFragment: KtCodeFragment, val sourcePosition: Sour } } - private fun EvaluationContextImpl.getArgumentsForEval4j( + private fun EvaluationContextImpl.getArgumentsForEvaluation( parameters: List, parameterTypes: Array ): List {