Minor. Drop redundant parameter
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
+2
-3
@@ -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<out PsiElement>?,
|
||||
private val name: StringRef?,
|
||||
private val qualifiedName: StringRef?,
|
||||
private val isTopLevel: Boolean
|
||||
) : KotlinStubBaseImpl<KtTypeAlias>(parent, type), KotlinTypeAliasStub {
|
||||
) : KotlinStubBaseImpl<KtTypeAlias>(parent, KtStubElementTypes.TYPEALIAS), KotlinTypeAliasStub {
|
||||
|
||||
override fun getName(): String? =
|
||||
StringRef.toString(name)
|
||||
|
||||
Reference in New Issue
Block a user