use of org.jetbrains.kotlin.psi.stubs.impl.KotlinImportDirectiveStubImpl in project kotlin by JetBrains.
the class KtImportDirectiveElementType method deserialize.
@NotNull
@Override
public KotlinImportDirectiveStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
boolean isAllUnder = dataStream.readBoolean();
StringRef importedName = dataStream.readName();
StringRef aliasName = dataStream.readName();
boolean isValid = dataStream.readBoolean();
return new KotlinImportDirectiveStubImpl(parentStub, isAllUnder, importedName, aliasName, isValid);
}
use of org.jetbrains.kotlin.psi.stubs.impl.KotlinImportDirectiveStubImpl in project kotlin by JetBrains.
the class KtImportDirectiveElementType method createStub.
@Override
public KotlinImportDirectiveStub createStub(@NotNull KtImportDirective psi, StubElement parentStub) {
FqName importedFqName = psi.getImportedFqName();
StringRef fqName = StringRef.fromString(importedFqName == null ? null : importedFqName.asString());
StringRef aliasName = StringRef.fromString(psi.getAliasName());
return new KotlinImportDirectiveStubImpl(parentStub, psi.isAllUnder(), fqName, aliasName, psi.isValidImport());
}
Aggregations