[FIR] Properly implement FirFunctionalTypeKindService
This implementation takes additional functional type kinds from compiler plugins into account
This commit is contained in:
committed by
Space Team
parent
c86495dcae
commit
e0c8f2354a
@@ -43,6 +43,10 @@ enum class FunctionClassKind(
|
||||
fun getFunctionalClassKind(className: String, packageFqName: FqName) =
|
||||
parseClassName(className, packageFqName)?.kind
|
||||
|
||||
fun hasArityAtTheEnd(prefix: String, className: String): Boolean {
|
||||
return toInt(className.substring(prefix.length)) != null
|
||||
}
|
||||
|
||||
private fun toInt(s: String): Int? {
|
||||
if (s.isEmpty()) return null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user