Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_uses.cpp
blob630a313f9fff580bbda084e9651165740f12b7aa
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 (void)
25 AST_Type *
26 AST_Uses::uses_type (void) const
28 return this->field_type ();
31 bool
32 AST_Uses::is_multiple (void) 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 (void)
53 this->AST_Field::destroy ();
56 IMPL_NARROW_FROM_DECL(AST_Uses)