Launch constructor delegation search only for elements from a file
This should fix EA-133791
This commit is contained in:
+1
@@ -27,6 +27,7 @@ class KotlinConstructorDelegationCallReferenceSearcher : QueryExecutorBase<PsiRe
|
|||||||
override fun processQuery(queryParameters: SearchParameters, consumer: ExecutorProcessor<PsiReference>) {
|
override fun processQuery(queryParameters: SearchParameters, consumer: ExecutorProcessor<PsiReference>) {
|
||||||
val method = queryParameters.method
|
val method = queryParameters.method
|
||||||
if (!method.isConstructor) return
|
if (!method.isConstructor) return
|
||||||
|
if (method.originalElement.containingFile == null) return
|
||||||
|
|
||||||
method.processDelegationCallConstructorUsages(method.useScope.intersectWith(queryParameters.effectiveSearchScope)) {
|
method.processDelegationCallConstructorUsages(method.useScope.intersectWith(queryParameters.effectiveSearchScope)) {
|
||||||
it.calleeExpression?.mainReference?.let { consumer.process(it) } ?: true
|
it.calleeExpression?.mainReference?.let { consumer.process(it) } ?: true
|
||||||
|
|||||||
Reference in New Issue
Block a user