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
6 #include "ast_union_fwd.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
,
17 AST_Decl (AST_Decl::NT_union_fwd
,
19 AST_Type (AST_Decl::NT_union_fwd
,
21 AST_StructureFwd (dummy
,
26 AST_UnionFwd::~AST_UnionFwd ()
30 // Redefinition of inherited virtual operations.
32 // Dump this AST_StructureFwd node to the ostream o.
34 AST_UnionFwd::dump (ACE_OSTREAM_TYPE
&o
)
36 this->dump_i (o
, "union ");
37 this->local_name ()->dump (o
);
41 AST_UnionFwd::ast_accept (ast_visitor
*visitor
)
43 return visitor
->visit_union_fwd (this);
47 AST_UnionFwd::destroy ()
49 this->AST_StructureFwd::destroy ();