1 #include "ast_finder.h"
2 #include "ast_visitor.h"
4 #include "utl_identifier.h"
6 AST_Decl::NodeType
const
7 AST_Finder::NT
= AST_Decl::NT_finder
;
9 AST_Finder::AST_Finder (UTL_ScopedName
*n
)
11 false), //@@ Always local, never abstract
12 AST_Decl (AST_Decl::NT_finder
,
14 UTL_Scope (AST_Decl::NT_finder
),
19 AST_Finder::~AST_Finder (void)
24 AST_Finder::destroy (void)
26 this->AST_Factory::destroy ();
29 // Dump this AST_Factory node to the ostream o.
31 AST_Finder::dump (ACE_OSTREAM_TYPE
&o
)
35 this->dump_i (o
, "finder ");
36 this->local_name ()->dump (o
);
37 this->dump_i (o
, "(");
39 // Iterator must be explicitly advanced inside the loop.
40 for (UTL_ScopeActiveIterator
i (this, IK_decls
);
49 this->dump_i (o
, ", ");
53 this->dump_i (o
, ")");
57 AST_Finder::ast_accept (ast_visitor
*visitor
)
59 return visitor
->visit_finder (this);
62 IMPL_NARROW_FROM_DECL(AST_Finder
)
63 IMPL_NARROW_FROM_SCOPE(AST_Finder
)