Light Classes: Provide backing fields (if any) as one of property's light elements

This commit is contained in:
Alexey Sedunov
2016-02-02 18:23:33 +03:00
parent b5145ea68b
commit 48b538cebf
@@ -41,7 +41,7 @@ fun KtDeclaration.toLightElements(): List<PsiNamedElement> =
is KtClassOrObject -> toLightClass().singletonOrEmptyList()
is KtNamedFunction,
is KtSecondaryConstructor -> LightClassUtil.getLightClassMethods(this as KtFunction)
is KtProperty -> LightClassUtil.getLightClassPropertyMethods(this).toList()
is KtProperty -> LightClassUtil.getLightClassPropertyMethods(this).allDeclarations
is KtPropertyAccessor -> LightClassUtil.getLightClassAccessorMethod(this).singletonOrEmptyList()
is KtParameter -> ArrayList<PsiNamedElement>().let { elements ->
toPsiParameters().toCollection(elements)