Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / TAO_IDL / be / be_constant.cpp
blobfaec5c24b21cbc851bf0186cdcdd5c56e8cc72c7
2 //=============================================================================
3 /**
4 * @file be_constant.cpp
6 * Extension of class AST_Constant that provides additional means for C++
7 * mapping.
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
14 #include "be_constant.h"
15 #include "be_visitor.h"
16 #include "utl_scope.h"
17 #include "nr_extern.h"
19 be_constant::be_constant (AST_Expression::ExprType et,
20 AST_Expression *v,
21 UTL_ScopedName *n)
22 : COMMON_Base (),
23 AST_Decl (AST_Decl::NT_const, n),
24 AST_Constant (et, v, n),
25 be_decl (AST_Decl::NT_const, n)
29 int
30 be_constant::accept (be_visitor *visitor)
32 return visitor->visit_constant (this);
35 void
36 be_constant::destroy ()
38 this->be_decl::destroy ();
39 this->AST_Constant::destroy ();