Migrate compiler, idea and others to new case conversion api

This commit is contained in:
Abduqodiri Qurbonzoda
2021-04-08 02:28:57 +03:00
parent aa543c6631
commit 40d1849f33
138 changed files with 239 additions and 224 deletions
@@ -79,7 +79,7 @@ private fun parseLong(text: String): Long? {
}
private fun parseFloatingLiteral(text: String): Number? {
if (text.toLowerCase().endsWith('f')) {
if (text.lowercase().endsWith('f')) {
return parseFloat(text)
}
return parseDouble(text)
@@ -72,7 +72,7 @@ open class KotlinStubBaseImpl<T : KtElementImplStub<*>>(parent: StubElement<*>?,
private fun getPropertyName(method: Method): String {
val methodName = method.name!!
if (methodName.startsWith("get")) {
return methodName.substring(3).decapitalize()
return methodName.substring(3).replaceFirstChar(Char::lowercaseChar)
}
return methodName
}