Renames
This commit is contained in:
+4
-4
@@ -93,13 +93,13 @@ abstract class OperatorReferenceSearcher<TReferenceElement : KtElement>(
|
|||||||
): OperatorReferenceSearcher<*>? {
|
): OperatorReferenceSearcher<*>? {
|
||||||
return runReadAction {
|
return runReadAction {
|
||||||
if (declaration.isValid)
|
if (declaration.isValid)
|
||||||
_create(declaration, searchScope, consumer, optimizer, options)
|
createInReadAction(declaration, searchScope, consumer, optimizer, options)
|
||||||
else
|
else
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun _create(
|
private fun createInReadAction(
|
||||||
declaration: PsiElement,
|
declaration: PsiElement,
|
||||||
searchScope: SearchScope,
|
searchScope: SearchScope,
|
||||||
consumer: Processor<PsiReference>,
|
consumer: Processor<PsiReference>,
|
||||||
@@ -122,10 +122,10 @@ abstract class OperatorReferenceSearcher<TReferenceElement : KtElement>(
|
|||||||
declaration
|
declaration
|
||||||
}
|
}
|
||||||
|
|
||||||
return create(declarationToUse, name, consumer, optimizer, options, searchScope)
|
return createInReadAction(declarationToUse, name, consumer, optimizer, options, searchScope)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun create(
|
private fun createInReadAction(
|
||||||
declaration: PsiElement,
|
declaration: PsiElement,
|
||||||
name: Name,
|
name: Name,
|
||||||
consumer: Processor<PsiReference>,
|
consumer: Processor<PsiReference>,
|
||||||
|
|||||||
Reference in New Issue
Block a user