diff --git a/compiler/frontend/src/org/jetbrains/kotlin/psi/stubs/elements/KtTypeAliasElementType.kt b/compiler/frontend/src/org/jetbrains/kotlin/psi/stubs/elements/KtTypeAliasElementType.kt index 3da08f0ff3d..97ec9823739 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/psi/stubs/elements/KtTypeAliasElementType.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/psi/stubs/elements/KtTypeAliasElementType.kt @@ -33,7 +33,7 @@ class KtTypeAliasElementType(debugName: String) : val name = StringRef.fromString(psi.name) val fqName = StringRef.fromString(ResolveSessionUtils.safeFqNameForLazyResolve(psi)?.asString()) val isTopLevel = psi.isTopLevel() - return KotlinTypeAliasStubImpl(KtStubElementTypes.TYPEALIAS, parentStub, name, fqName, isTopLevel) + return KotlinTypeAliasStubImpl(parentStub, name, fqName, isTopLevel) } override fun serialize(stub: KotlinTypeAliasStub, dataStream: StubOutputStream) { @@ -46,7 +46,7 @@ class KtTypeAliasElementType(debugName: String) : val name = dataStream.readName() val fqName = dataStream.readName() val isTopLevel = dataStream.readBoolean() - return KotlinTypeAliasStubImpl(KtStubElementTypes.TYPEALIAS, parentStub, name, fqName, isTopLevel) + return KotlinTypeAliasStubImpl(parentStub, name, fqName, isTopLevel) } override fun indexStub(stub: KotlinTypeAliasStub, sink: IndexSink) { diff --git a/compiler/frontend/src/org/jetbrains/kotlin/psi/stubs/impl/KotlinTypeAliasStubImpl.kt b/compiler/frontend/src/org/jetbrains/kotlin/psi/stubs/impl/KotlinTypeAliasStubImpl.kt index c0a245a7c0d..fb133f3e952 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/psi/stubs/impl/KotlinTypeAliasStubImpl.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/psi/stubs/impl/KotlinTypeAliasStubImpl.kt @@ -22,15 +22,14 @@ import com.intellij.util.io.StringRef import org.jetbrains.kotlin.name.FqName import org.jetbrains.kotlin.psi.KtTypeAlias import org.jetbrains.kotlin.psi.stubs.KotlinTypeAliasStub -import org.jetbrains.kotlin.psi.stubs.elements.KtTypeAliasElementType +import org.jetbrains.kotlin.psi.stubs.elements.KtStubElementTypes class KotlinTypeAliasStubImpl( - type: KtTypeAliasElementType, parent: StubElement?, private val name: StringRef?, private val qualifiedName: StringRef?, private val isTopLevel: Boolean -) : KotlinStubBaseImpl(parent, type), KotlinTypeAliasStub { +) : KotlinStubBaseImpl(parent, KtStubElementTypes.TYPEALIAS), KotlinTypeAliasStub { override fun getName(): String? = StringRef.toString(name)