Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_consumes.cpp
blob1a1308094aafc85b66d691f7456db026ef027e37
1 #include "ast_consumes.h"
2 #include "ast_visitor.h"
4 AST_Decl::NodeType const
5 AST_Consumes::NT = AST_Decl::NT_consumes;
7 AST_Consumes::AST_Consumes (UTL_ScopedName *n,
8 AST_Type *consumes_type)
9 : COMMON_Base (false,
10 false),
11 AST_Decl (AST_Decl::NT_consumes,
12 n),
13 AST_Field (AST_Decl::NT_consumes,
14 consumes_type,
19 AST_Consumes::~AST_Consumes (void)
23 AST_Type *
24 AST_Consumes::consumes_type (void) const
26 return this->field_type ();
29 void
30 AST_Consumes::dump (ACE_OSTREAM_TYPE &o)
32 this->dump_i (o, "consumes ");
33 this->AST_Field::dump (o);
36 int
37 AST_Consumes::ast_accept (ast_visitor *visitor)
39 return visitor->visit_consumes (this);
42 void
43 AST_Consumes::destroy (void)
45 this->AST_Field::destroy ();
48 IMPL_NARROW_FROM_DECL(AST_Consumes)