KotlinFunctionTypeStub¶
@SubclassOptInRequired(markerClass = [KtImplementationDetail::class])
interface KotlinFunctionTypeStub : KotlinStubElement<KtFunctionType>
Properties¶
childrenStubs¶
@get:NotNull
abstract override val childrenStubs: @NotNull List<StubElement<*>?>
containingFileStub¶
@get:Nullable
abstract override val containingFileStub: @Nullable PsiFileStub<*>?
elementType¶
abstract override val elementType: IElementType?
parentStub¶
abstract override val parentStub: StubElement<*>?
psi¶
abstract override val psi: KtFunctionType?
stubSerializer¶
open val stubSerializer: ObjectStubSerializer<*, out Stub?>?
stubType¶
abstract override val stubType: IStubElementType<*, *>?
Functions¶
copyInto¶
abstract fun copyInto(newParent: StubElement<*>?): KotlinStubElement<T>
Returns a copy of this stub with the parent set to newParent.
Note: the implementation doesn't guarantee that com.intellij.psi.stubs.ObjectStubBase.isDangling flag is copied
findChildStubByElementType¶
open fun findChildStubByElementType(elementType: @NotNull IElementType): @Nullable StubElement<out PsiElement?>?
findChildStubByType¶
getChildrenByType¶
abstract fun <E : PsiElement?> getChildrenByType(p0: @NotNull IElementType, p1: @NotNull ArrayFactory<out E?>): @NotNull Array<out E?>
abstract fun <E : PsiElement?> getChildrenByType(p0: @NotNull TokenSet, p1: @NotNull ArrayFactory<out E?>): @NotNull Array<out E?>
getParentStubOfType¶
abstract fun <E : PsiElement?> getParentStubOfType(p0: @NotNull Class<E?>): @Nullable E?
getPsi¶
abstract fun getPsi(): KtFunctionType?
isEquivalentTo¶
abstract fun isEquivalentTo(other: KotlinStubElement<*>): Boolean
Returns whether two stubs have equivalent types and properties. Doesn't compare children stubs or any other tree structure details.
Note: This method shouldn't be used outside of compiler internals. Stubs from different files aren't supposed to be comparable, that's why equals / hashCode are not implemented, as they would lead to incorrect behavior.