decompiler 1.0.0
Public Member Functions | Private Attributes | List of all members
PendingBrace Class Reference

Set of print commands for displaying an open brace '{' and setting a new indent level. More...

#include <printc.hh>

Inheritance diagram for PendingBrace:
PendPrint

Public Member Functions

 PendingBrace (void)
 Constructor.
 
int4 getIndentId (void) const
 If commands have been issued, returns the new indent level id.
 
virtual void callback (EmitXml *emit)
 Callback that executes the actual print commands. More...
 
- Public Member Functions inherited from PendPrint
virtual ~PendPrint (void)
 Destructor.
 
virtual void callback (EmitXml *emit)=0
 Callback that executes the actual print commands. More...
 

Private Attributes

int4 indentId
 Id associated with the new indent level.
 

Detailed Description

Set of print commands for displaying an open brace '{' and setting a new indent level.

These are the print commands sent to the emitter prior to printing and else block. The open brace can be canceled if the block decides it wants to use "else if" syntax.

Member Function Documentation

◆ callback()

void PendingBrace::callback ( EmitXml emit)
virtual

Callback that executes the actual print commands.

Implements PendPrint.

References indentId, EmitXml::print(), and EmitXml::startIndent().


The documentation for this class was generated from the following files: