FIR/LC: use DataClassResolver when determining componentN/copy

This commit is contained in:
Jinseong Jeon
2021-09-24 11:53:58 -07:00
committed by Ilya Kirillov
parent ac53166960
commit 5af24dc6ce
4 changed files with 11 additions and 38 deletions
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.resolve
import org.jetbrains.kotlin.builtins.StandardNames.DATA_CLASS_COPY
import org.jetbrains.kotlin.name.Name
object DataClassResolver {
@@ -27,4 +28,6 @@ object DataClassResolver {
return true
}
}
fun isCopy(name: Name): Boolean = name == DATA_CLASS_COPY
}