File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
semanticdb-kotlinc/src/main/kotlin/com/sourcegraph/semanticdb_kotlinc Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import org.jetbrains.kotlin.fir.renderer.*
14
14
import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol
15
15
import org.jetbrains.kotlin.fir.symbols.SymbolInternals
16
16
import org.jetbrains.kotlin.fir.symbols.impl.*
17
- import org.jetbrains.kotlin.fir.types.ConeClassLikeType
17
+ import org.jetbrains.kotlin.fir.types.impl.FirImplicitAnyTypeRef
18
18
import org.jetbrains.kotlin.idea.KotlinLanguage
19
19
import org.jetbrains.kotlin.lexer.KtTokens
20
20
import org.jetbrains.kotlin.psi
@@ -57,9 +57,6 @@ class SemanticdbTextDocumentBuilder(
57
57
symbols.add(symbolInformation)
58
58
}
59
59
60
- private val isIgnoredSuperClass =
61
- setOf (" kotlin.Any" , " java.lang.Object" , " java.io.Serializable" )
62
-
63
60
@OptIn(SymbolInternals ::class )
64
61
private fun symbolInformation (
65
62
firBasedSymbol : FirBasedSymbol <* >? ,
@@ -71,10 +68,7 @@ class SemanticdbTextDocumentBuilder(
71
68
is FirClassSymbol ->
72
69
firBasedSymbol
73
70
.resolvedSuperTypeRefs
74
- .filter {
75
- (it.coneType as ? ConeClassLikeType )?.toString() !in
76
- isIgnoredSuperClass
77
- }
71
+ .filter { it !is FirImplicitAnyTypeRef }
78
72
.map { it.toString() }
79
73
.asIterable()
80
74
else -> emptyList<String >().asIterable()
You can’t perform that action at this time.
0 commit comments