Java Code Examples for com.intellij.psi.stubs.StubOutputStream#writeVarInt()
The following examples show how to use
com.intellij.psi.stubs.StubOutputStream#writeVarInt() .
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: CSharpBaseVariableStubElementType.java From consulo-csharp with Apache License 2.0 | 6 votes |
@Override @RequiredReadAction public void serialize(@Nonnull CSharpVariableDeclStub<V> variableStub, @Nonnull StubOutputStream stubOutputStream) throws IOException { stubOutputStream.writeVarInt(variableStub.getOtherModifierMask()); if(supportsParentQName()) { stubOutputStream.writeName(variableStub.getParentQName()); } if(supportsInitializer(variableStub.getOtherModifierMask())) { stubOutputStream.writeName(variableStub.getInitializerText()); } }
Example 2
Source File: CSharpMethodStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@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: CSharpReferenceExpressionStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@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 4
Source File: CSharpTypeStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@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 5
Source File: QualifiedName.java From consulo with Apache License 2.0 | 5 votes |
public static void serialize(@Nullable QualifiedName qName, StubOutputStream dataStream) throws IOException { if (qName == null) { dataStream.writeVarInt(0); } else { dataStream.writeVarInt(qName.getComponentCount()); for (String s : qName.myComponents) { dataStream.writeName(s); } } }
Example 6
Source File: CSharpAttributeListStubElementType.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Override public void serialize(@Nonnull CSharpAttributeListStub stub, @Nonnull StubOutputStream stubOutputStream) throws IOException { DotNetAttributeTargetType targetType = stub.getTargetType(); stubOutputStream.writeVarInt(targetType == null ? -1 : targetType.ordinal()); }
Example 7
Source File: CSharpArrayTypeStubElementType.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Override public void serialize(@Nonnull CSharpWithIntValueStub stub, @Nonnull StubOutputStream stubOutputStream) throws IOException { stubOutputStream.writeVarInt(stub.getValue()); }
Example 8
Source File: CSharpXAccessorStubElementType.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Override public void serialize(@Nonnull CSharpXXXAccessorStub stub, @Nonnull StubOutputStream stubOutputStream) throws IOException { stubOutputStream.writeVarInt(stub.getOtherModifierMask()); }
Example 9
Source File: CSharpNativeTypeStubElementType.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Override public void serialize(@Nonnull CSharpWithIntValueStub<CSharpNativeType> stub, @Nonnull StubOutputStream stubOutputStream) throws IOException { stubOutputStream.writeVarInt(stub.getValue()); }
Example 10
Source File: CSharpModifierListStubElementType.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Override public void serialize(@Nonnull CSharpModifierListStub stub, @Nonnull StubOutputStream stubOutputStream) throws IOException { stubOutputStream.writeVarInt(stub.getModifierMask()); }
Example 11
Source File: CSharpGenericConstraintKeywordValueStubElementType.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Override public void serialize(@Nonnull CSharpWithIntValueStub<CSharpGenericConstraintKeywordValue> stub, @Nonnull StubOutputStream stubOutputStream) throws IOException { stubOutputStream.writeVarInt(stub.getValue()); }
Example 12
Source File: CSharpConstructorStubElementType.java From consulo-csharp with Apache License 2.0 | 4 votes |
@Override public void serialize(@Nonnull CSharpMethodDeclStub cSharpTypeStub, @Nonnull StubOutputStream stubOutputStream) throws IOException { stubOutputStream.writeName(cSharpTypeStub.getParentQName()); stubOutputStream.writeVarInt(cSharpTypeStub.getOtherModifierMask()); }