2 //=============================================================================
4 * @file be_constant.cpp
6 * Extension of class AST_Constant that provides additional means for C++
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
,
23 AST_Decl (AST_Decl::NT_const
, n
),
24 AST_Constant (et
, v
, n
),
25 be_decl (AST_Decl::NT_const
, n
)
30 be_constant::accept (be_visitor
*visitor
)
32 return visitor
->visit_constant (this);
36 be_constant::destroy (void)
38 this->be_decl::destroy ();
39 this->AST_Constant::destroy ();
44 IMPL_NARROW_FROM_DECL (be_constant
)