2 //=============================================================================
4 * @file be_attribute.cpp
6 * Extension of class AST_Attribute that provides additional means for C++
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
14 #include "be_attribute.h"
16 #include "be_visitor.h"
19 #include "global_extern.h"
21 be_attribute::be_attribute (bool ro
,
28 AST_Decl (AST_Decl::NT_attr
,
30 AST_Field (AST_Decl::NT_attr
,
38 be_decl (AST_Decl::NT_attr
,
43 if (!this->imported () && !this->is_local ())
45 // For the return types of the two operations
46 // generated from this attribute.
47 be_util::set_arg_seen_bit (dynamic_cast<be_type
*> (ft
));
52 be_attribute::field_type (void) const
54 return dynamic_cast<be_type
*> (this->AST_Attribute::field_type ());
58 be_attribute::accept (be_visitor
*visitor
)
60 return visitor
->visit_attribute (this);
64 be_attribute::destroy (void)
66 this->be_decl::destroy ();
67 this->AST_Attribute::destroy ();
70 IMPL_NARROW_FROM_DECL (be_attribute
)