[light classes] optimize accessors retrieval
Avoid expensive calls to `navigationElement` for methods that cannot be getters/setters and would be filtered later. Repeat partly naming generation strategy. Merge-request: KT-MR-10689 Merged-by: Anna Kozlova <Anna.Kozlova@jetbrains.com>
This commit is contained in:
@@ -16,7 +16,7 @@ object DataClassResolver {
|
||||
|
||||
fun isComponentLike(name: Name): Boolean = isComponentLike(name.asString())
|
||||
|
||||
private fun isComponentLike(name: String): Boolean {
|
||||
fun isComponentLike(name: String): Boolean {
|
||||
if (!name.startsWith(DATA_CLASS_COMPONENT_PREFIX)) return false
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user