blob: b2924aa2cd41bc6bf183893d1fe20ba07ac2e562 (
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
47
48
49
50
51
52
53
54
|
//=============================================================================
/**
* @file be_finder.cpp
*
* $Id$
*
* Extension of class AST_Finder that provides additional means for C++
* mapping.
*
*
* @author Jeff Parsons
*/
//=============================================================================
#include "be_finder.h"
#include "be_visitor.h"
be_finder::be_finder (UTL_ScopedName *n)
: COMMON_Base (1,
0), //@@ Always local, never abstract
AST_Decl (AST_Decl::NT_finder,
n),
UTL_Scope (AST_Decl::NT_finder),
AST_Factory (n),
AST_Finder (n),
be_scope (AST_Decl::NT_finder),
be_decl (AST_Decl::NT_finder,
n),
be_factory (n)
{
}
be_finder::~be_finder (void)
{
}
void
be_finder::destroy (void)
{
// Call the destroy methods of our base classes.
this->be_factory::destroy ();
this->AST_Finder::destroy ();
}
int
be_finder::accept (be_visitor *visitor)
{
return visitor->visit_finder (this);
}
IMPL_NARROW_FROM_DECL (be_finder)
IMPL_NARROW_FROM_SCOPE (be_finder)
|