Search in sources :

Example 1 with KotlinTypeParameterStubImpl

use of org.jetbrains.kotlin.psi.stubs.impl.KotlinTypeParameterStubImpl in project kotlin by JetBrains.

the class KtTypeParameterElementType method deserialize.

@NotNull
@Override
public KotlinTypeParameterStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
    StringRef name = dataStream.readName();
    boolean isInVariance = dataStream.readBoolean();
    boolean isOutVariance = dataStream.readBoolean();
    return new KotlinTypeParameterStubImpl(parentStub, name, isInVariance, isOutVariance);
}
Also used : KotlinTypeParameterStubImpl(org.jetbrains.kotlin.psi.stubs.impl.KotlinTypeParameterStubImpl) StringRef(com.intellij.util.io.StringRef) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

StringRef (com.intellij.util.io.StringRef)1 NotNull (org.jetbrains.annotations.NotNull)1 KotlinTypeParameterStubImpl (org.jetbrains.kotlin.psi.stubs.impl.KotlinTypeParameterStubImpl)1