Light Classes: Provide backing fields (if any) as one of property's light elements
This commit is contained in:
@@ -41,7 +41,7 @@ fun KtDeclaration.toLightElements(): List<PsiNamedElement> =
|
|||||||
is KtClassOrObject -> toLightClass().singletonOrEmptyList()
|
is KtClassOrObject -> toLightClass().singletonOrEmptyList()
|
||||||
is KtNamedFunction,
|
is KtNamedFunction,
|
||||||
is KtSecondaryConstructor -> LightClassUtil.getLightClassMethods(this as KtFunction)
|
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 KtPropertyAccessor -> LightClassUtil.getLightClassAccessorMethod(this).singletonOrEmptyList()
|
||||||
is KtParameter -> ArrayList<PsiNamedElement>().let { elements ->
|
is KtParameter -> ArrayList<PsiNamedElement>().let { elements ->
|
||||||
toPsiParameters().toCollection(elements)
|
toPsiParameters().toCollection(elements)
|
||||||
|
|||||||
Reference in New Issue
Block a user