Move: Fix EA-1266148

This commit is contained in:
Alexey Sedunov
2016-11-21 14:56:38 +03:00
parent 0f58e2eef2
commit 9967d4c4e2

View File

@@ -70,7 +70,7 @@ fun PsiElement.toLightMethods(): List<PsiMethod> =
is KtProperty -> LightClassUtil.getLightClassPropertyMethods(this).toList()
is KtParameter -> LightClassUtil.getLightClassPropertyMethods(this).toList()
is KtPropertyAccessor -> LightClassUtil.getLightClassAccessorMethods(this)
is KtClass -> toLightClass()?.getConstructors()?.first().singletonOrEmptyList()
is KtClass -> toLightClass()?.getConstructors()?.firstOrNull().singletonOrEmptyList()
is PsiMethod -> this.singletonList()
else -> listOf()
}