diff --git a/plugins/uast-kotlin/src/org/jetbrains/uast/kotlin/KotlinUastLanguagePlugin.kt b/plugins/uast-kotlin/src/org/jetbrains/uast/kotlin/KotlinUastLanguagePlugin.kt index bd4a20daab9..5078e8ef082 100644 --- a/plugins/uast-kotlin/src/org/jetbrains/uast/kotlin/KotlinUastLanguagePlugin.kt +++ b/plugins/uast-kotlin/src/org/jetbrains/uast/kotlin/KotlinUastLanguagePlugin.kt @@ -39,7 +39,6 @@ import org.jetbrains.uast.kotlin.declarations.KotlinUMethod import org.jetbrains.uast.kotlin.expressions.* import org.jetbrains.uast.kotlin.psi.UastKotlinPsiParameter import org.jetbrains.uast.kotlin.psi.UastKotlinPsiVariable -import java.lang.ref.WeakReference interface KotlinUastBindingContextProviderService { fun getBindingContext(element: KtElement): BindingContext @@ -80,9 +79,11 @@ class KotlinUastLanguagePlugin : UastLanguagePlugin { val uElement = convertDeclaration(element, givenParent, requiredType) ?: KotlinConverter.convertPsiElement(element, givenParent, requiredType) + /* if (uElement != null) { element.putUserData(KOTLIN_CACHED_UELEMENT_KEY, WeakReference(uElement)) } + */ return uElement }