Update NEWS files for next release
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_uses.cpp
blob14c36fcf911cbd2af46948d7e161bdd94096f100
1 #include "ast_uses.h"
2 #include "ast_interface.h"
3 #include "ast_visitor.h"
5 AST_Decl::NodeType const
6 AST_Uses::NT = AST_Decl::NT_uses;
8 AST_Uses::AST_Uses (UTL_ScopedName *n,
9 AST_Type *uses_type,
10 bool is_multiple)
11 : COMMON_Base (),
12 AST_Decl (AST_Decl::NT_uses,
13 n),
14 AST_Field (AST_Decl::NT_uses,
15 uses_type,
16 n),
17 is_multiple_ (is_multiple)
21 AST_Uses::~AST_Uses ()
25 AST_Type *
26 AST_Uses::uses_type () const
28 return this->field_type ();
31 bool
32 AST_Uses::is_multiple () const
34 return this->is_multiple_;
37 void
38 AST_Uses::dump (ACE_OSTREAM_TYPE &o)
40 this->dump_i (o, "uses ");
41 this->AST_Field::dump (o);
44 int
45 AST_Uses::ast_accept (ast_visitor *visitor)
47 return visitor->visit_uses (this);
50 void
51 AST_Uses::destroy ()
53 this->AST_Field::destroy ();