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 ()
25 AST_ValueBox::boxed_type () const
27 return this->pd_boxed_type
;
31 AST_ValueBox::dump (ACE_OSTREAM_TYPE
&o
)
33 this->dump_i (o
, "valuetype ");
35 this->local_name ()->dump (o
);
36 this->dump_i (o
, " ");
37 this->pd_boxed_type
->dump (o
);
41 AST_ValueBox::ast_accept (ast_visitor
*visitor
)
43 return visitor
->visit_valuebox (this);
47 AST_ValueBox::destroy ()
49 this->AST_ConcreteType::destroy ();