2 //=============================================================================
6 * Extension of class AST_Factory that provides additional means for C++
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Boris Kolpackov <bosk@ipmce.ru>
12 //=============================================================================
14 #include "be_factory.h"
15 #include "be_visitor.h"
17 #include "ast_exception.h"
18 #include "ast_argument.h"
21 #include "utl_exceptlist.h"
23 #include "global_extern.h"
25 be_factory::be_factory (UTL_ScopedName
*n
)
27 0), //@@ Always local, never abstract
28 AST_Decl (AST_Decl::NT_factory
,
30 UTL_Scope (AST_Decl::NT_factory
),
32 be_scope (AST_Decl::NT_factory
),
33 be_decl (AST_Decl::NT_factory
,
38 be_factory::~be_factory (void)
43 be_factory::destroy (void)
45 // Call the destroy methods of our base classes.
46 this->be_scope::destroy ();
47 this->be_decl::destroy ();
49 this->AST_Factory::destroy ();
53 be_factory::accept (be_visitor
*visitor
)
55 return visitor
->visit_factory (this);
59 be_factory::be_add_argument (AST_Argument
*arg
)
61 this->add_to_scope (arg
);
62 this->add_to_referenced (arg
,
68 IMPL_NARROW_FROM_DECL (be_factory
)
69 IMPL_NARROW_FROM_SCOPE (be_factory
)