summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_provides.cpp
blob: e2b6515666820e36ca4973605064caf04453c49a (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_provides.h"
#include "ast_interface.h"
#include "ast_visitor.h"

AST_Decl::NodeType const
AST_Provides::NT = AST_Decl::NT_provides;

AST_Provides::AST_Provides (UTL_ScopedName *n,
                            AST_Type *provides_type)
  : COMMON_Base (),
    AST_Decl (AST_Decl::NT_provides,
              n),
    AST_Field (AST_Decl::NT_provides,
               provides_type,
               n)
{
}

AST_Provides::~AST_Provides ()
{
}

AST_Type *
AST_Provides::provides_type () const
{
  return this->field_type ();
}

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

int
AST_Provides::ast_accept (ast_visitor *visitor)
{
  return visitor->visit_provides (this);
}

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