summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_consumes.cpp
blob: e2a4422bbeb0f672c68c62bc5355f5bf1e75d116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "ast_consumes.h"
#include "ast_visitor.h"

AST_Decl::NodeType const
AST_Consumes::NT = AST_Decl::NT_consumes;

AST_Consumes::AST_Consumes (UTL_ScopedName *n,
                            AST_Type *consumes_type)
  : COMMON_Base (false,
                 false),
    AST_Decl (AST_Decl::NT_consumes,
              n),
    AST_Field (AST_Decl::NT_consumes,
               consumes_type,
               n)
{
}

AST_Consumes::~AST_Consumes ()
{
}

AST_Type *
AST_Consumes::consumes_type () const
{
  return this->field_type ();
}

void
AST_Consumes::dump (ACE_OSTREAM_TYPE &o)
{
  this->dump_i (o, "consumes ");
  this->AST_Field::dump (o);
}

int
AST_Consumes::ast_accept (ast_visitor *visitor)
{
  return visitor->visit_consumes (this);
}

void
AST_Consumes::destroy ()
{
  this->AST_Field::destroy ();
}