use of org.jetbrains.kotlin.psi.stubs.impl.KotlinAnnotationEntryStubImpl in project kotlin by JetBrains.
the class KtAnnotationEntryElementType method createStub.
@Override
public KotlinAnnotationEntryStub createStub(@NotNull KtAnnotationEntry psi, StubElement parentStub) {
Name shortName = KtPsiUtil.getShortName(psi);
String resultName = shortName != null ? shortName.asString() : psi.getText();
KtValueArgumentList valueArgumentList = psi.getValueArgumentList();
boolean hasValueArguments = valueArgumentList != null && !valueArgumentList.getArguments().isEmpty();
return new KotlinAnnotationEntryStubImpl(parentStub, StringRef.fromString(resultName), hasValueArguments);
}
use of org.jetbrains.kotlin.psi.stubs.impl.KotlinAnnotationEntryStubImpl in project kotlin by JetBrains.
the class KtAnnotationEntryElementType method deserialize.
@NotNull
@Override
public KotlinAnnotationEntryStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
StringRef text = dataStream.readName();
boolean hasValueArguments = dataStream.readBoolean();
return new KotlinAnnotationEntryStubImpl(parentStub, text, hasValueArguments);
}
Aggregations