Minor. Drop redundant parameter

This commit is contained in:
Denis Zharkov
2016-06-27 18:18:45 +03:00
parent 067fe35b72
commit daa356860c
2 changed files with 4 additions and 5 deletions
@@ -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) {
@@ -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)