use of org.jetbrains.kotlin.psi.stubs.impl.KotlinParameterStubImpl in project kotlin by JetBrains.
the class KtParameterElementType method deserialize.
@NotNull
@Override
public KotlinParameterStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
StringRef name = dataStream.readName();
boolean isMutable = dataStream.readBoolean();
boolean hasValOrValNode = dataStream.readBoolean();
boolean hasDefaultValue = dataStream.readBoolean();
StringRef fqName = dataStream.readName();
return new KotlinParameterStubImpl(parentStub, fqName, name, isMutable, hasValOrValNode, hasDefaultValue);
}
use of org.jetbrains.kotlin.psi.stubs.impl.KotlinParameterStubImpl in project kotlin by JetBrains.
the class KtParameterElementType method createStub.
@Override
public KotlinParameterStub createStub(@NotNull KtParameter psi, StubElement parentStub) {
FqName fqName = psi.getFqName();
StringRef fqNameRef = StringRef.fromString(fqName != null ? fqName.asString() : null);
return new KotlinParameterStubImpl(parentStub, fqNameRef, StringRef.fromString(psi.getName()), psi.isMutable(), psi.hasValOrVar(), psi.hasDefaultValue());
}
Aggregations