1 //=============================================================================
5 * Extension of class AST_Module that provides additional means for C++
8 * @author Copyright 1994-1995 by Sun Microsystems
9 * @author Inc. and Aniruddha Gokhale
11 //=============================================================================
13 #include "be_module.h"
14 #include "be_visitor.h"
16 be_module::be_module (UTL_ScopedName
*n
, AST_Module
*previous
)
18 AST_Decl (AST_Decl::NT_module
, n
),
19 UTL_Scope (AST_Decl::NT_module
),
20 AST_Module (n
, previous
),
21 be_scope (AST_Decl::NT_module
),
22 be_decl (AST_Decl::NT_module
, n
)
27 be_module::destroy (void)
29 // Call the destroy methods of our base classes.
30 this->be_scope::destroy ();
31 this->be_decl::destroy ();
32 this->AST_Module::destroy ();
36 be_module::accept (be_visitor
*visitor
)
38 return visitor
->visit_module (this);
41 IMPL_NARROW_FROM_DECL (be_module
)
42 IMPL_NARROW_FROM_SCOPE (be_module
)