Spring Support: Support Find Usages/Rename (on both declarations and

references) of Kotlin declarations referenced in the XML config
 #KT-11719 Fixed
 #KT-11652 Fixed
This commit is contained in:
Alexey Sedunov
2016-04-06 14:08:33 +03:00
parent a553f67744
commit 119cf0f0cd
68 changed files with 615 additions and 58 deletions
@@ -224,8 +224,8 @@ class KotlinReferencesSearcher : QueryExecutorBase<PsiReference, ReferencesSearc
}
private fun searchPropertyMethods(queryParameters: ReferencesSearch.SearchParameters, parameter: KtParameter) {
val propertyMethods = runReadAction { LightClassUtil.getLightClassPropertyMethods(parameter) }
propertyMethods.allDeclarations.forEach { searchNamedElement(queryParameters, it) }
val lightElements = runReadAction { parameter.toLightElements() }
lightElements.forEach { searchNamedElement(queryParameters, it) }
}
private fun searchDataClassComponentUsages(queryParameters: ReferencesSearch.SearchParameters,