Implementation of MultiASTPlugin, the plugin class of multi package for the AST element.
More...
Implementation of MultiASTPlugin, the plugin class of multi package for the AST element.
- Author
- Sarah Keating
◆ GET_NTH_CHILD
#define GET_NTH_CHILD |
( |
|
result, |
|
|
|
n, |
|
|
|
node |
|
) |
| |
Value:{\
ASTFunction* tmp = dynamic_cast<ASTFunction*>(node); \
if (tmp != NULL) result = tmp->getChild(n); \
else\
{\
ASTNode* tmp2 = dynamic_cast<ASTNode*>(node);\
if (tmp2 != NULL)\
result= tmp2->getChild(n); \
else result = NULL;\
}\
}
◆ GET_NUM_CHILDREN
#define GET_NUM_CHILDREN |
( |
|
result, |
|
|
|
node |
|
) |
| |
Value:{\
ASTFunction* tmp = dynamic_cast<ASTFunction*>(node);\
if (tmp != NULL) result= tmp->getNumChildren(); \
else\
{\
ASTNode* tmp2 = dynamic_cast<ASTNode*>(node);\
if (tmp2 != NULL)\
result= tmp2->getNumChildren(); \
else result = 0;\
}\
}