From 42678bc79af067df284c1bd02e0dbe2aa5e7e8c7 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Thu, 9 Jul 2015 20:52:16 +0300 Subject: [PATCH] Minor optimization --- .../org/jetbrains/kotlin/synthetic/SyntheticExtensionsScope.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/frontend.java/src/org/jetbrains/kotlin/synthetic/SyntheticExtensionsScope.kt b/compiler/frontend.java/src/org/jetbrains/kotlin/synthetic/SyntheticExtensionsScope.kt index 59608ba56f9..88c4f6aaba7 100644 --- a/compiler/frontend.java/src/org/jetbrains/kotlin/synthetic/SyntheticExtensionsScope.kt +++ b/compiler/frontend.java/src/org/jetbrains/kotlin/synthetic/SyntheticExtensionsScope.kt @@ -42,6 +42,9 @@ interface SyntheticExtensionPropertyDescriptor : PropertyDescriptor { companion object { fun findByGetterOrSetter(getterOrSetter: FunctionDescriptor, resolutionScope: JetScope): SyntheticExtensionPropertyDescriptor? { + val name = getterOrSetter.getName() + if (propertyNameByGetMethodName(name) == null && propertyNameBySetMethodName(name) == null) return null // optimization + val owner = getterOrSetter.getContainingDeclaration() if (owner !is JavaClassDescriptor) return null