Evaluate expression: pass this as first parameter

This commit is contained in:
Natalia Ukhorskaya
2014-05-21 16:46:37 +04:00
parent a2f369b610
commit ec6809ccae
3 changed files with 11 additions and 7 deletions
@@ -161,12 +161,12 @@ class KotlinEvaluator(val codeFragment: JetCodeFragment,
private fun JetNamedFunction.getParameterNamesForDebugger(): List<String> {
val result = arrayListOf<String>()
for (param in getValueParameters()) {
result.add(param.getName()!!)
}
if (getReceiverTypeRef() != null) {
result.add("this")
}
for (param in getValueParameters()) {
result.add(param.getName()!!)
}
return result
}