File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
semanticdb-kotlinc/src/main/kotlin/com/sourcegraph/semanticdb_kotlinc Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import org.jetbrains.kotlin.com.intellij.psi.PsiElement
16
16
import org.jetbrains.kotlin.descriptors.ClassDescriptor
17
17
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
18
18
import org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithSource
19
+ import org.jetbrains.kotlin.descriptors.SimpleFunctionDescriptor
19
20
import org.jetbrains.kotlin.idea.KotlinLanguage
20
21
import org.jetbrains.kotlin.ir.backend.js.lower.serialization.ir.JsManglerDesc.fqnString
21
22
import org.jetbrains.kotlin.psi.KtConstructor
@@ -66,10 +67,14 @@ class SemanticdbTextDocumentBuilder(
66
67
.getAllSuperClassifiers()
67
68
// first is the class itself
68
69
.drop(1 )
69
- .filter { it.fqnString == " kotlin.Any" || it.fqnString == " java.lang.Object" }
70
+ .filter {
71
+ it.fqnString != " kotlin.Any" && it.fqnString != " java.lang.Object"
72
+ }
70
73
.flatMap { cache[it] }
71
74
.map { it.toString() }
72
75
.asIterable()
76
+ is SimpleFunctionDescriptor ->
77
+ descriptor.overriddenDescriptors.flatMap { cache[it] }.map { it.toString() }
73
78
else -> emptyList<String >().asIterable()
74
79
}
75
80
return SymbolInformation {
You can’t perform that action at this time.
0 commit comments