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
|
// $Id$
#include "be_uses.h"
#include "be_interface.h"
#include "be_visitor.h"
be_uses::be_uses (UTL_ScopedName *n,
AST_Type *uses_type,
bool is_multiple)
: COMMON_Base (false,
false),
AST_Decl (AST_Decl::NT_uses,
n),
AST_Field (AST_Decl::NT_uses,
uses_type,
n),
AST_Uses (n,
uses_type,
is_multiple),
be_decl (AST_Decl::NT_uses,
n),
be_field (uses_type,
n)
{
}
be_uses::~be_uses (void)
{
}
be_type *
be_uses::uses_type (void) const
{
return
be_type::narrow_from_decl (
this->AST_Uses::uses_type ());
}
int
be_uses::accept (be_visitor *visitor)
{
return visitor->visit_uses (this);
}
void
be_uses::destroy (void)
{
this->AST_Uses::destroy ();
this->be_field::destroy ();
}
IMPL_NARROW_FROM_DECL (be_uses)
|