Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_component_fwd.cpp
blob597f6434d52b8bb84ac04146befc10e6440d10da
1 #include "ast_component_fwd.h"
2 #include "ast_visitor.h"
3 #include "utl_identifier.h"
5 AST_Decl::NodeType const
6 AST_ComponentFwd::NT = AST_Decl::NT_component_fwd;
8 AST_ComponentFwd::AST_ComponentFwd (AST_Interface *dummy,
9 UTL_ScopedName *n)
10 : COMMON_Base (true,
11 false),
12 AST_Decl (AST_Decl::NT_component_fwd,
13 n),
14 AST_Type (AST_Decl::NT_component_fwd,
15 n),
16 AST_InterfaceFwd (dummy,
21 AST_ComponentFwd::~AST_ComponentFwd (void)
25 // Redefinition of inherited virtual operations.
27 // Dump this AST_InterfaceFwd node to the ostream o.
28 void
29 AST_ComponentFwd::dump (ACE_OSTREAM_TYPE &o)
31 this->dump_i (o, "component ");
33 this->local_name ()->dump (o);
36 int
37 AST_ComponentFwd::ast_accept (ast_visitor *visitor)
39 return visitor->visit_component_fwd (this);
42 void
43 AST_ComponentFwd::destroy (void)
45 this->AST_InterfaceFwd::destroy ();
48 bool
49 AST_ComponentFwd::is_fwd (void)
51 return true; // This is a fwd declared type
54 IMPL_NARROW_FROM_DECL (AST_ComponentFwd)