@NotNull @Override public PsiClassReferenceListStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { byte role = dataStream.readByte(); int len = dataStream.readVarInt(); StringRef[] names = StringRef.createArray(len); for (int i = 0; i < names.length; i++) { names[i] = dataStream.readName(); } PsiReferenceList.Role decodedRole = decodeRole(role); return new PsiClassReferenceListStubImpl(roleToElementType(decodedRole), parentStub, names, decodedRole); }
@NotNull @Override public PsiClassReferenceListStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { int len = dataStream.readVarInt(); String[] names = ArrayUtil.newStringArray(len); for(int i = 0; i < names.length; i++) { names[i] = StringRef.toString(dataStream.readName()); } return new PsiClassReferenceListStubImpl(this, parentStub, names); }
@Override public PsiClassReferenceListStub createStub(LighterAST tree, LighterASTNode node, StubElement parentStub) { JavaClassReferenceListElementType type = (JavaClassReferenceListElementType)node.getTokenType(); return new PsiClassReferenceListStubImpl(type, parentStub, getTexts(tree, node), elementTypeToRole(type)); }
@Override public PsiClassReferenceListStub createStub(LighterAST tree, LighterASTNode node, StubElement parentStub) { JavaClassReferenceListElementType type = (JavaClassReferenceListElementType) node.getTokenType(); return new PsiClassReferenceListStubImpl(type, parentStub, getTexts(tree, node)); }