We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf44710 commit 2a1a686Copy full SHA for 2a1a686
common-util/src/main/kotlin/com/google/devtools/ksp/common/impl/KSNameImpl.kt
@@ -13,10 +13,12 @@ class KSNameImpl private constructor(val name: String) : KSName {
13
}
14
15
override fun getQualifier(): String {
16
- return name.split(".").dropLast(1).joinToString(".")
+ val lastIndex = name.lastIndexOf('.')
17
+ return if (lastIndex != -1) name.substring(0, lastIndex) else ""
18
19
20
override fun getShortName(): String {
- return name.split(".").last()
21
22
+ return if (lastIndex != -1) name.substring(lastIndex + 1) else name
23
24
0 commit comments