1 #include "ast_valuebox.h"
2 #include "ast_visitor.h"
3 #include "utl_identifier.h"
5 AST_Decl::NodeType
const
6 AST_ValueBox::NT
= AST_Decl::NT_valuebox
;
8 AST_ValueBox::AST_ValueBox (UTL_ScopedName
*n
,
11 AST_Decl (AST_Decl::NT_valuebox
,
13 AST_Type (AST_Decl::NT_valuebox
,
15 AST_ConcreteType (AST_Decl::NT_valuebox
, n
),
16 pd_boxed_type (boxed_type
)
20 AST_ValueBox::~AST_ValueBox (void)
25 AST_ValueBox::boxed_type (void) const
27 return this->pd_boxed_type
;
31 AST_ValueBox::dump (ACE_OSTREAM_TYPE
&o
)
34 this->dump_i (o
, "valuetype ");
36 this->local_name ()->dump (o
);
37 this->dump_i (o
, " ");
38 this->pd_boxed_type
->dump (o
);
42 AST_ValueBox::ast_accept (ast_visitor
*visitor
)
44 return visitor
->visit_valuebox (this);
48 AST_ValueBox::destroy (void)
50 this->AST_ConcreteType::destroy ();
53 IMPL_NARROW_FROM_DECL(AST_ValueBox
)