Java Code Examples for com.intellij.psi.stubs.StubInputStream#readBoolean()

The following examples show how to use com.intellij.psi.stubs.StubInputStream#readBoolean() . 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: AtParamStub.java    From bamboo-soy with Apache License 2.0 5 votes vote down vote up
@NotNull
@Override
public AtParamStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub)
    throws IOException {
  final StringRef ref = dataStream.readName();
  final StringRef ref2 = dataStream.readName();
  return new AtParamStub(
      parentStub, ref.getString(), ref2.getString(), dataStream.readBoolean());
}
 
Example 2
Source File: BashVarDefElementType.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@NotNull
public BashVarDefStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
    StringRef ref = dataStream.readName();
    boolean readOnly = dataStream.readBoolean();

    return new BashVarDefStubImpl(parentStub, ref, this, readOnly);
}
 
Example 3
Source File: BashSimpleCommandElementType.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
@NotNull
public BashCommandStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
    StringRef bashCommandFilename = dataStream.readName();
    boolean internalCommandBash3 = dataStream.readBoolean();
    boolean internalCommandBash4 = dataStream.readBoolean();
    boolean genericCommand = dataStream.readBoolean();

    return new BashCommandStubImpl(parentStub, StringRef.toString(bashCommandFilename), this, internalCommandBash3, internalCommandBash4, genericCommand);
}
 
Example 4
Source File: CSharpReferenceExpressionStubElementType.java    From consulo-csharp with Apache License 2.0 5 votes vote down vote up
@Nonnull
@Override
public CSharpReferenceExpressionStub deserialize(@Nonnull StubInputStream dataStream, StubElement parentStub) throws IOException
{
	StringRef referenceText = dataStream.readName();
	int kind = dataStream.readVarInt();
	int memberAccessType = dataStream.readVarInt();
	boolean global = dataStream.readBoolean();
	return new CSharpReferenceExpressionStub(parentStub, this, StringRef.toString(referenceText), kind, memberAccessType, global);
}
 
Example 5
Source File: RmlFileStubElementType.java    From reasonml-idea-plugin with MIT License 4 votes vote down vote up
@NotNull
@Override
public RmlFileStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
    return new RmlFileStub(null, dataStream.readBoolean());
}
 
Example 6
Source File: TemplateBlockStub.java    From bamboo-soy with Apache License 2.0 4 votes vote down vote up
@NotNull
@Override
public TemplateBlockStub deserialize(
    @NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
  return new TemplateBlockStub(parentStub, dataStream.readBoolean());
}