2 //=============================================================================
4 * @file structure_ci.cpp
6 * Visitor generating code for Structure in the inline file.
8 * @author Aniruddha Gokhale
10 //=============================================================================
12 #include "structure.h"
14 // ******************************************************
16 // ******************************************************
18 be_visitor_structure_ci::be_visitor_structure_ci (be_visitor_context
*ctx
)
19 : be_visitor_structure (ctx
)
23 be_visitor_structure_ci::~be_visitor_structure_ci ()
27 // visit the Structure node and its scope
28 int be_visitor_structure_ci::visit_structure (be_structure
*node
)
30 if (node
->cli_inline_gen () || node
->imported ())
35 // All we have to do is to visit the scope.
36 if (this->visit_scope (node
) == -1)
38 ACE_ERROR_RETURN ((LM_ERROR
,
39 "(%N:%l) be_visitor_structure_ci::"
41 "codegen for scope failed\n"),
45 node
->cli_inline_gen (true);