Java Code Examples for com.intellij.psi.stubs.StubOutputStream#writeName()

The following examples show how to use com.intellij.psi.stubs.StubOutputStream#writeName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CSharpReferenceExpressionStubElementType.java    From consulo-csharp with Apache License 2.0 5 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpReferenceExpressionStub stub, @Nonnull StubOutputStream dataStream) throws IOException
{
	dataStream.writeName(stub.getReferenceText());
	dataStream.writeVarInt(stub.getKindIndex());
	dataStream.writeVarInt(stub.getMemberAccessTypeIndex());
	dataStream.writeBoolean(stub.isGlobal());
}
 
Example 2
Source File: CSharpMethodStubElementType.java    From consulo-csharp with Apache License 2.0 5 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpMethodDeclStub stub, @Nonnull StubOutputStream stubOutputStream) throws IOException
{
	stubOutputStream.writeName(stub.getParentQName());
	stubOutputStream.writeVarInt(stub.getOtherModifierMask());
	stubOutputStream.writeVarInt(stub.getOperatorIndex());
}
 
Example 3
Source File: CSharpTypeStubElementType.java    From consulo-csharp with Apache License 2.0 5 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpTypeDeclStub stub, @Nonnull StubOutputStream stubOutputStream) throws IOException
{
	stubOutputStream.writeName(stub.getParentQName());
	stubOutputStream.writeName(stub.getVmQName());
	stubOutputStream.writeVarInt(stub.getOtherModifierMask());
}
 
Example 4
Source File: PsiModuleStubElementType.java    From reasonml-idea-plugin with MIT License 5 votes vote down vote up
public void serialize(@NotNull final PsiModuleStub stub, @NotNull final StubOutputStream dataStream) throws IOException {
    dataStream.writeName(stub.getName());
    dataStream.writeUTFFast(stub.getPath());
    dataStream.writeBoolean(stub.isComponent());
    dataStream.writeBoolean(stub.isInterface());

    String alias = stub.getAlias();
    dataStream.writeBoolean(alias != null);
    if (alias != null) {
        dataStream.writeUTFFast(stub.getAlias());
    }
}
 
Example 5
Source File: CSharpAttributeStubElementType.java    From consulo-csharp with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpWithStringValueStub stub, @Nonnull StubOutputStream stubOutputStream) throws IOException
{
	stubOutputStream.writeName(stub.getReferenceText());
}
 
Example 6
Source File: CSharpUsingNamespaceStatementStubElementType.java    From consulo-csharp with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpWithStringValueStub<CSharpUsingNamespaceStatement> stub,
		@Nonnull StubOutputStream stubOutputStream) throws IOException
{
	stubOutputStream.writeName(stub.getReferenceText());
}
 
Example 7
Source File: CSharpConversionMethodStubElementType.java    From consulo-csharp with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpMethodDeclStub cSharpTypeStub, @Nonnull StubOutputStream stubOutputStream) throws IOException
{
	stubOutputStream.writeName(cSharpTypeStub.getParentQName());
}
 
Example 8
Source File: CSharpIdentifierStubElementType.java    From consulo-csharp with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpIdentifierStub stub, @Nonnull StubOutputStream dataStream) throws IOException
{
	dataStream.writeName(stub.getValue());
}
 
Example 9
Source File: CSharpIndexMethodStubElementType.java    From consulo-csharp with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpIndexMethodDeclStub methodStub, @Nonnull StubOutputStream stubOutputStream) throws IOException
{
	stubOutputStream.writeName(methodStub.getParentQName());
}
 
Example 10
Source File: HaskellConidStubElementType.java    From intellij-haskforce with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@NotNull HaskellConidStub stub, @NotNull StubOutputStream dataStream) throws IOException {
    dataStream.writeName(stub.getName());
}
 
Example 11
Source File: BashFunctionDefElementType.java    From BashSupport with Apache License 2.0 4 votes vote down vote up
public void serialize(@NotNull BashFunctionDefStub stub, @NotNull StubOutputStream dataStream) throws IOException {
    dataStream.writeName(stub.getName());
}
 
Example 12
Source File: BashVarDefElementType.java    From BashSupport with Apache License 2.0 4 votes vote down vote up
public void serialize(@NotNull BashVarDefStub stub, @NotNull StubOutputStream dataStream) throws IOException {
    dataStream.writeName(stub.getName());
    dataStream.writeBoolean(stub.isReadOnly());
}
 
Example 13
Source File: BashVarElementType.java    From BashSupport with Apache License 2.0 4 votes vote down vote up
public void serialize(@NotNull BashVarStub stub, @NotNull StubOutputStream dataStream) throws IOException {
    dataStream.writeName(stub.getName());
    dataStream.writeInt(stub.getPrefixLength());
}
 
Example 14
Source File: BashIncludeCommandElementType.java    From BashSupport with Apache License 2.0 4 votes vote down vote up
public void serialize(@NotNull BashIncludeCommandStub stub, @NotNull StubOutputStream dataStream) throws IOException {
    dataStream.writeName(stub.getIncludedFilename());
    dataStream.writeName(stub.getIncluderFilePath());
}
 
Example 15
Source File: DataTypeStub.java    From protobuf-jetbrains-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@NotNull S stub, @NotNull StubOutputStream dataStream)
        throws IOException {
    dataStream.writeName(stub.getFullName());
    dataStream.writeName(stub.getName());
}
 
Example 16
Source File: CSharpConstructorStubElementType.java    From consulo-csharp with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@Nonnull CSharpMethodDeclStub cSharpTypeStub, @Nonnull StubOutputStream stubOutputStream) throws IOException
{
	stubOutputStream.writeName(cSharpTypeStub.getParentQName());
	stubOutputStream.writeVarInt(cSharpTypeStub.getOtherModifierMask());
}
 
Example 17
Source File: NamespaceDeclarationStub.java    From bamboo-soy with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(
    @NotNull NamespaceDeclarationStub stub, @NotNull StubOutputStream dataStream)
    throws IOException {
  dataStream.writeName(stub.getName());
}
 
Example 18
Source File: TemplateDefinitionStub.java    From bamboo-soy with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(
    @NotNull TemplateDefinitionStub stub, @NotNull StubOutputStream dataStream)
    throws IOException {
  dataStream.writeName(stub.getName());
}
 
Example 19
Source File: AtStateStub.java    From bamboo-soy with Apache License 2.0 4 votes vote down vote up
@Override
public void serialize(@NotNull AtStateStub stub, @NotNull StubOutputStream dataStream)
    throws IOException {
  dataStream.writeName(stub.getName());
  dataStream.writeName(stub.type);
}
 
Example 20
Source File: PsiRecordFieldStubElementType.java    From reasonml-idea-plugin with MIT License 4 votes vote down vote up
public void serialize(@NotNull final PsiRecordFieldStub stub, @NotNull final StubOutputStream dataStream) throws IOException {
    dataStream.writeName(stub.getName());
    dataStream.writeUTFFast(stub.getPath());
}