summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_template_module.cpp
blob: a82a74130578fc8493d6e3949d014407f87403c6 (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
#include "be_template_module.h"
#include "be_visitor.h"

be_template_module::be_template_module (
      UTL_ScopedName *n,
      FE_Utils::T_PARAMLIST_INFO *template_params)
  : COMMON_Base (false,
                 false),
    AST_Decl (AST_Decl::NT_module,
              n),
    UTL_Scope (AST_Decl::NT_module),
    AST_Module (n),
    AST_Type (AST_Decl::NT_module,
              n),
    AST_Template_Module (n,
                         template_params),
    be_scope (AST_Decl::NT_module),
    be_decl (AST_Decl::NT_module,
             n)
{
}

be_template_module::~be_template_module ()
{
}

void
be_template_module::destroy ()
{
  this->AST_Template_Module::destroy ();
  this->be_scope::destroy ();
  this->be_decl::destroy ();
}

int
be_template_module::accept (be_visitor *)
{
  // Disables visitation when this node is encountered as part
  // of a normal scope traversal. We will call
  // visit_template_module() directly when the template module
  // is instantiated, and match template args with template params
  // to generate implied IDL.
  return 0;
}