[IR] [Refactoring] Add toString and String::plus to IrBuiltins

Also use `OperatorNameConventions` constants instead of magic strings
This commit is contained in:
Sergej Jaskiewicz
2021-10-28 08:35:11 +00:00
committed by Space
parent f8dd1b3512
commit a367b91aa1
10 changed files with 80 additions and 36 deletions
@@ -16,8 +16,8 @@ import org.jetbrains.kotlin.util.OperatorNameConventions
object FunctionsFromAny {
val EQUALS_METHOD_NAME = OperatorNameConventions.EQUALS
val HASH_CODE_METHOD_NAME = Name.identifier("hashCode")
val TO_STRING_METHOD_NAME = Name.identifier("toString")
val HASH_CODE_METHOD_NAME = OperatorNameConventions.HASH_CODE
val TO_STRING_METHOD_NAME = OperatorNameConventions.TO_STRING
fun addFunctionFromAnyIfNeeded(
thisDescriptor: ClassDescriptor,