Explicit / implicit this: analyzeFully --> analyze
This commit is contained in:
@@ -21,7 +21,7 @@ import com.intellij.codeInspection.ProblemDescriptor
|
||||
import com.intellij.codeInspection.ProblemHighlightType.LIKE_UNUSED_SYMBOL
|
||||
import com.intellij.codeInspection.ProblemsHolder
|
||||
import com.intellij.openapi.project.Project
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.analyzeFully
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.analyze
|
||||
import org.jetbrains.kotlin.idea.util.*
|
||||
import org.jetbrains.kotlin.psi.*
|
||||
import org.jetbrains.kotlin.psi.psiUtil.getChildOfType
|
||||
@@ -34,7 +34,7 @@ class ExplicitThisInspection : AbstractKotlinInspection() {
|
||||
override fun visitDotQualifiedExpression(expression: KtDotQualifiedExpression) {
|
||||
val thisExpression = expression.receiverExpression as? KtThisExpression ?: return
|
||||
|
||||
val context = expression.analyzeFully()
|
||||
val context = expression.analyze()
|
||||
val scope = expression.getResolutionScope(context) ?: return
|
||||
|
||||
val selectorExpression = expression.selectorExpression as? KtReferenceExpression ?: return
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.intellij.codeInspection.ProblemHighlightType
|
||||
import com.intellij.codeInspection.ProblemsHolder
|
||||
import com.intellij.openapi.project.Project
|
||||
import org.jetbrains.kotlin.descriptors.CallableDescriptor
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.analyzeFully
|
||||
import org.jetbrains.kotlin.idea.caches.resolve.analyze
|
||||
import org.jetbrains.kotlin.idea.util.getFactoryForImplicitReceiverWithSubtypeOf
|
||||
import org.jetbrains.kotlin.idea.util.getResolutionScope
|
||||
import org.jetbrains.kotlin.psi.*
|
||||
@@ -37,7 +37,7 @@ class ImplicitThisInspection : AbstractKotlinInspection() {
|
||||
val parent = expression.parent
|
||||
if (parent is KtCallExpression && parent.isSelectorOfDotQualifiedExpression()) return
|
||||
|
||||
val context = expression.analyzeFully()
|
||||
val context = expression.analyze()
|
||||
val scope = expression.getResolutionScope(context) ?: return
|
||||
|
||||
val descriptor = context[BindingContext.REFERENCE_TARGET, expression] as? CallableDescriptor ?: return
|
||||
|
||||
Reference in New Issue
Block a user