Generates MSG source from an AST.
Assumes that the object tree has already passed all validation stages (DTD, syntax, semantic).
|
|
const char * | increaseIndent (const char *indent) |
|
const char * | decreaseIndent (const char *indent) |
|
void | generateItem (ASTNode *node, const char *indent, bool islast, const char *arg=nullptr) |
|
void | generateChildren (ASTNode *node, const char *indent, const char *arg=nullptr) |
|
void | generateChildrenWithType (ASTNode *node, int tagcode, const char *indent, const char *arg=nullptr) |
|
void | generateChildrenWithTypes (ASTNode *node, int tagcodes[], const char *indent, const char *arg=nullptr) |
|
void | doMsgClassOrStructBody (ASTNode *msgclassorstruct, const char *indent) |
|
|
std::string | concatInnerComments (ASTNode *node) |
|
std::string | getBannerComment (ASTNode *node, const char *indent) |
|
std::string | getRightComment (ASTNode *node) |
|
std::string | getInlineRightComment (ASTNode *node) |
|
std::string | getTrailingComment (ASTNode *node) |
|
|
void | doFiles (FilesElement *node, const char *indent, bool islast, const char *) |
|
void | doMsgFile (MsgFileElement *node, const char *indent, bool islast, const char *) |
|
void | doImport (ImportElement *node, const char *indent, bool islast, const char *) |
|
void | doProperty (PropertyElement *node, const char *indent, bool islast, const char *sep) |
|
void | doPropertyKey (PropertyKeyElement *node, const char *indent, bool islast, const char *sep) |
|
void | doLiteral (LiteralElement *node, const char *indent, bool islast, const char *) |
|
void | doNamespace (NamespaceElement *node, const char *indent, bool islast, const char *) |
|
void | doCplusplus (CplusplusElement *node, const char *indent, bool islast, const char *) |
|
void | doStructDecl (StructDeclElement *node, const char *indent, bool islast, const char *) |
|
void | doClassDecl (ClassDeclElement *node, const char *indent, bool islast, const char *) |
|
void | doMessageDecl (MessageDeclElement *node, const char *indent, bool islast, const char *) |
|
void | doPacketDecl (PacketDeclElement *node, const char *indent, bool islast, const char *) |
|
void | doEnumDecl (EnumDeclElement *node, const char *indent, bool islast, const char *) |
|
void | doEnum (EnumElement *node, const char *indent, bool islast, const char *) |
|
void | doEnumField (EnumFieldElement *node, const char *indent, bool islast, const char *) |
|
void | doMessage (MessageElement *node, const char *indent, bool islast, const char *) |
|
void | doPacket (PacketElement *node, const char *indent, bool islast, const char *) |
|
void | doClass (ClassElement *node, const char *indent, bool islast, const char *) |
|
void | doStruct (StructElement *node, const char *indent, bool islast, const char *) |
|
void | doField (FieldElement *node, const char *indent, bool islast, const char *) |
|
void | doComment (CommentElement *node, const char *indent, bool islast, const char *) |
|