ThisReceiver converted to Kotlin

This commit is contained in:
Mikhail Glukhikh
2015-11-17 11:46:25 +03:00
parent ffb67eb79e
commit 7ba297db81
13 changed files with 20 additions and 23 deletions
@@ -29,7 +29,7 @@ fun renderDataFlowValue(value: DataFlowValue): String? {
fun renderId(id: Any?): String? {
return when (id) {
is KtExpression -> id.getText()
is ThisReceiver -> "this@${id.getDeclarationDescriptor().getName()}"
is ThisReceiver -> "this@${id.declarationDescriptor.getName()}"
is VariableDescriptor -> id.getName().asString()
is PackageViewDescriptor -> id.fqName.asString()
is com.intellij.openapi.util.Pair<*, *> -> renderId(id.first) + "." + renderId(id.second)