Better log

This commit is contained in:
Valentin Kipyatkov
2016-08-28 11:27:00 +03:00
parent f447321e58
commit 724886c967
2 changed files with 5 additions and 2 deletions
@@ -582,7 +582,10 @@ private class Processor(
?: (this as? KtNamedDeclaration)?.name
return when (this) {
is PsiMethod, is KtFunction -> fqName + "()"
is KtParameter -> "parameter ${this.name} in ${this.ownerFunction?.logPresentation()}"
is KtParameter -> {
val owner = this.ownerFunction?.logPresentation() ?: this.parent.toString()
"parameter ${this.name} in $owner"
}
else -> fqName
}
}
@@ -1,5 +1,5 @@
Searched inheritors of A
Searched references to A
Searched references to parameter a in null in Kotlin files
Searched references to parameter a in FOR in Kotlin files
Used plain search in LocalSearchScope:
CLASS:A