17#ifndef __OMNETPP_NEDXML_MSGYYUTIL_H
18#define __OMNETPP_NEDXML_MSGYYUTIL_H
21#include "msgelements.h"
27ASTNode *createMsgElementWithTag(ParseContext *np,
int tagcode, ASTNode *parent=
nullptr);
28ASTNode *getOrCreateMsgElementWithTag(ParseContext *np,
int tagcode, ASTNode *parent);
30PropertyElement *addProperty(ParseContext *np, ASTNode *node,
const char *name);
31PropertyElement *storeSourceCode(ParseContext *np, ASTNode *node, YYLoc tokenpos);
32LiteralElement *createPropertyValue(ParseContext *np, YYLoc textpos);
34void addComment(ParseContext *np, ASTNode *node,
const char *locId,
const char *comment,
const char *defaultValue);
35void storeFileComment(ParseContext *np, ASTNode *node);
36void storeBannerComment(ParseContext *np, ASTNode *node, YYLoc tokenpos);
37void storeRightComment(ParseContext *np, ASTNode *node, YYLoc tokenpos);
38void storeTrailingComment(ParseContext *np, ASTNode *node, YYLoc tokenpos);
39void storeBannerAndRightComments(ParseContext *np, ASTNode *node, YYLoc pos);
40void storeBannerAndRightComments(ParseContext *np, ASTNode *node, YYLoc firstpos, YYLoc lastpos);
41void storeInnerComments(ParseContext *np, ASTNode *node, YYLoc pos);