Search in sources :

Example 1 with KotlinPropertyStubImpl

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

the class KtPropertyElementType method deserialize.

@NotNull
@Override
public KotlinPropertyStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
    StringRef name = dataStream.readName();
    boolean isVar = dataStream.readBoolean();
    boolean isTopLevel = dataStream.readBoolean();
    boolean hasDelegate = dataStream.readBoolean();
    boolean hasDelegateExpression = dataStream.readBoolean();
    boolean hasInitializer = dataStream.readBoolean();
    boolean hasReceiverTypeRef = dataStream.readBoolean();
    boolean hasReturnTypeRef = dataStream.readBoolean();
    StringRef fqNameAsString = dataStream.readName();
    FqName fqName = fqNameAsString != null ? new FqName(fqNameAsString.toString()) : null;
    return new KotlinPropertyStubImpl(parentStub, name, isVar, isTopLevel, hasDelegate, hasDelegateExpression, hasInitializer, hasReceiverTypeRef, hasReturnTypeRef, fqName);
}
Also used : FqName(org.jetbrains.kotlin.name.FqName) KotlinPropertyStubImpl(org.jetbrains.kotlin.psi.stubs.impl.KotlinPropertyStubImpl) 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 FqName (org.jetbrains.kotlin.name.FqName)1 KotlinPropertyStubImpl (org.jetbrains.kotlin.psi.stubs.impl.KotlinPropertyStubImpl)1