Skip to content

Commit

Permalink
chore: kotlin objects are classes too
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Feb 16, 2024
1 parent 7e9bb97 commit 87f6b14
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import com.siyeh.ig.psiutils.ControlFlowUtils
import org.jetbrains.kotlin.backend.jvm.ir.psiElement
import org.jetbrains.kotlin.idea.caches.resolve.resolveToCall
import org.jetbrains.kotlin.psi.*
import org.jetbrains.kotlin.psi.psiUtil.containingClass
import org.jetbrains.kotlin.psi.psiUtil.containingClassOrObject
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrCall
import org.jetbrains.plugins.scala.lang.psi.api.statements.ScFunctionDefinition
import org.joor.Reflect
Expand Down Expand Up @@ -69,7 +69,7 @@ class JVMArtifactScopeService : IArtifactScopeService {
return when {
ArtifactTypeService.isKotlin(element) -> element.descendantsOfType<KtNamedFunction>().filter {
if (element is KtClassOrObject && !includeInnerClasses) {
element == it.containingClass()
element == it.containingClassOrObject
} else true
}.toList()

Expand Down

0 comments on commit 87f6b14

Please sign in to comment.