use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class PropertyStubStorage method deserialize.
public static PropertyStubStorage deserialize(StubInputStream stream) throws IOException {
PropertyStubStorage me = new PropertyStubStorage();
me.myGetter = readOne(stream);
me.mySetter = readOne(stream);
me.myDeleter = readOne(stream);
//
StringRef ref = stream.readName();
me.myDoc = ref != null ? ref.getString() : null;
return me;
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class PyFunctionElementType method deserialize.
@NotNull
public PyFunctionStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
String name = StringRef.toString(dataStream.readName());
String docString = dataStream.readUTFFast();
StringRef deprecationMessage = dataStream.readName();
final boolean isAsync = dataStream.readBoolean();
final StringRef typeComment = dataStream.readName();
return new PyFunctionStubImpl(name, StringUtil.nullize(docString), deprecationMessage == null ? null : deprecationMessage.getString(), isAsync, typeComment == null ? null : typeComment.getString(), parentStub, getStubElementType());
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class PyImportElementElementType method deserialize.
@NotNull
public PyImportElementStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
QualifiedName qName = QualifiedName.deserialize(dataStream);
StringRef asName = dataStream.readName();
return new PyImportElementStubImpl(qName, asName.getString(), parentStub, getStubElementType());
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class PyNamedParameterElementType method deserialize.
@NotNull
public PyNamedParameterStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
String name = StringRef.toString(dataStream.readName());
byte flags = dataStream.readByte();
final StringRef typeComment = dataStream.readName();
return new PyNamedParameterStubImpl(name, (flags & POSITIONAL_CONTAINER) != 0, (flags & KEYWORD_CONTAINER) != 0, (flags & HAS_DEFAULT_VALUE) != 0, typeComment == null ? null : typeComment.getString(), parentStub, getStubElementType());
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class PyNamedTupleStubImpl method deserialize.
@Nullable
public static PyNamedTupleStub deserialize(@NotNull StubInputStream stream) throws IOException {
final StringRef calleeName = stream.readName();
final StringRef name = stream.readName();
final List<String> fields = deserializeFields(stream, stream.readVarInt());
if (calleeName == null || name == null) {
return null;
}
return new PyNamedTupleStubImpl(QualifiedName.fromDottedString(calleeName.getString()), name.getString(), fields);
}
Aggregations