Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_union_fwd.cpp
blobdf21ba3993a35429eec6cb54111dd783405b5aaa
1 // AST_UnionFwd nodes denote forward declarations of IDL union.
2 // AST_UnionFwd nodes have a field containing the full declaration
3 // of the union, which is initialized when that declaration is
4 // encountered.
6 #include "ast_union_fwd.h"
7 #include "ast_union.h"
8 #include "ast_visitor.h"
9 #include "utl_identifier.h"
11 AST_Decl::NodeType const
12 AST_UnionFwd::NT = AST_Decl::NT_union_fwd;
14 AST_UnionFwd::AST_UnionFwd (AST_Union *dummy,
15 UTL_ScopedName *n)
16 : COMMON_Base (),
17 AST_Decl (AST_Decl::NT_union_fwd,
18 n),
19 AST_Type (AST_Decl::NT_union_fwd,
20 n),
21 AST_StructureFwd (dummy,
26 AST_UnionFwd::~AST_UnionFwd (void)
30 // Redefinition of inherited virtual operations.
32 // Dump this AST_StructureFwd node to the ostream o.
33 void
34 AST_UnionFwd::dump (ACE_OSTREAM_TYPE &o)
36 this->dump_i (o, "union ");
37 this->local_name ()->dump (o);
40 int
41 AST_UnionFwd::ast_accept (ast_visitor *visitor)
43 return visitor->visit_union_fwd (this);
46 void
47 AST_UnionFwd::destroy (void)
49 this->AST_StructureFwd::destroy ();
54 IMPL_NARROW_FROM_DECL (AST_UnionFwd)