KT-50862 Add name property to KtSignature

See the KDoc of the property for the reasons why
it was created
This commit is contained in:
Roman Golyshev
2022-01-26 16:09:19 +03:00
committed by Space
parent e2c7290214
commit 564e408434
123 changed files with 585 additions and 128 deletions
@@ -17,6 +17,7 @@ import org.jetbrains.kotlin.analysis.api.symbols.*
import org.jetbrains.kotlin.analysis.api.symbols.DebugSymbolRenderer.render
import org.jetbrains.kotlin.analysis.api.types.KtSubstitutor
import org.jetbrains.kotlin.analysis.api.types.KtType
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.psi.*
import org.jetbrains.kotlin.test.model.TestModule
import org.jetbrains.kotlin.test.services.TestServices
@@ -115,6 +116,7 @@ private fun KtAnalysisSession.stringRepresentation(call: KtCallInfo): String {
is KtDiagnostic -> "$severity<$factoryName: $defaultMessage>"
is KtType -> render()
is Enum<*> -> name
is Name -> asString()
else -> buildString {
val clazz = this@stringValue::class
append(clazz.simpleName!!)