mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-08 15:52:05 +00:00
Added comments
This commit is contained in:
@@ -57,10 +57,19 @@ abstract class OperatorReferenceSearcher<TReferenceElement : KtElement>(
|
||||
) {
|
||||
private val project = targetDeclaration.project
|
||||
|
||||
/**
|
||||
* Invoked for all expressions that may have type matching receiver type of our operator
|
||||
*/
|
||||
protected abstract fun processPossibleReceiverExpression(expression: KtExpression)
|
||||
|
||||
/**
|
||||
* Extract reference that may resolve to our operator (no actual resolve to be performed)
|
||||
*/
|
||||
protected abstract fun extractReference(element: PsiElement): PsiReference?
|
||||
|
||||
/**
|
||||
* Check if reference may potentially resolve to our operator (no actual resolve to be performed)
|
||||
*/
|
||||
protected abstract fun isReferenceToCheck(ref: PsiReference): Boolean
|
||||
|
||||
protected fun processReferenceElement(element: TReferenceElement): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user