src/ast/ast_nodes_p4r.cpp
P4RInitBlockNode::P4RInitBlockNode(AstNode* name, AstNode* body) {
    nodeType_ = typeid(*this).name();
    name_ = dynamic_cast<NameNode*>(name);
    name_->parent_ = this;
    body_ = dynamic_cast<BodyNode*>(body);
    body_->parent_ = this;
}
/**
 *
 * Initialization block (assume a global block).
 *
 */
Initialization block (assume a global block).
Initialization block ( assume a global block ) .
P4RInitBlockNode::P4RInitBlockNode(AstNode* name, AstNode* body) {
    nodeType_ = typeid(*this).name();
    name_ = dynamic_cast<NameNode*>(name);
    name_->parent_ = this;
    body_ = dynamic_cast<BodyNode*>(body);
    body_->parent_ = this;
}
P4RInitBlockNode :: P4RInitBlockNode ( AstNode * name , AstNode * body ) { nodeType_ = typeid ( * this ) . name ( ) ; name_ = dynamic_cast < NameNode * > ( name ) ; name_ -> parent_ = this ; body_ = dynamic_cast < BodyNode * > ( body ) ; body_ -> parent_ = this ; }
Initialization block (assume a global block).
Initialization block ( assume a global block ) .