2 #include "ifr_visitor.h"
4 #include "global_extern.h"
7 #include "ace/Lock_Adapter_T.h"
8 #include "ace/Synch_Traits.h"
9 #include "ace/Null_Mutex.h"
11 ifr_visitor::ifr_visitor (void)
14 // Create the appropriate lock.
15 if (be_global
->enable_locking ())
18 ACE_Lock_Adapter
<TAO_SYNCH_MUTEX
> ());
23 ACE_Lock_Adapter
<ACE_SYNCH_NULL_MUTEX
> ());
27 ifr_visitor::~ifr_visitor (void)
32 // All the visit methods. Each concrete ifr visitors will
33 // override some subset of these.
36 ifr_visitor::visit_decl (AST_Decl
*)
42 ifr_visitor::visit_scope (UTL_Scope
*)
48 ifr_visitor::visit_type (AST_Type
*)
54 ifr_visitor::visit_predefined_type (AST_PredefinedType
*)
60 ifr_visitor::visit_module (AST_Module
*)
66 ifr_visitor::visit_interface (AST_Interface
*)
72 ifr_visitor::visit_interface_fwd (AST_InterfaceFwd
*)
78 ifr_visitor::visit_valuebox (AST_ValueBox
*)
84 ifr_visitor::visit_valuetype (AST_ValueType
*)
90 ifr_visitor::visit_valuetype_fwd (AST_ValueTypeFwd
*)
96 ifr_visitor::visit_component (AST_Component
*)
102 ifr_visitor::visit_component_fwd (AST_ComponentFwd
*)
108 ifr_visitor::visit_template_module (AST_Template_Module
*)
114 ifr_visitor::visit_template_module_inst (AST_Template_Module_Inst
*)
120 ifr_visitor::visit_template_module_ref (AST_Template_Module_Ref
*)
126 ifr_visitor::visit_param_holder(AST_Param_Holder
*)
132 int ifr_visitor::visit_porttype (AST_PortType
*)
138 ifr_visitor::visit_provides (AST_Provides
*)
144 ifr_visitor::visit_uses (AST_Uses
*)
150 ifr_visitor::visit_publishes (AST_Publishes
*)
156 ifr_visitor::visit_emits (AST_Emits
*)
162 ifr_visitor::visit_consumes (AST_Consumes
*)
168 ifr_visitor::visit_extended_port (AST_Extended_Port
*)
174 ifr_visitor::visit_mirror_port (AST_Mirror_Port
*)
180 ifr_visitor::visit_connector (AST_Connector
*)
186 ifr_visitor::visit_eventtype (AST_EventType
*)
192 ifr_visitor::visit_eventtype_fwd (AST_EventTypeFwd
*)
198 ifr_visitor::visit_home (AST_Home
*)
204 ifr_visitor::visit_factory (AST_Factory
*)
210 ifr_visitor::visit_finder (AST_Finder
*)
216 ifr_visitor::visit_structure (AST_Structure
*)
222 ifr_visitor::visit_structure_fwd (AST_StructureFwd
*)
228 ifr_visitor::visit_exception (AST_Exception
*)
234 ifr_visitor::visit_expression (AST_Expression
*)
240 ifr_visitor::visit_enum (AST_Enum
*)
246 ifr_visitor::visit_operation (AST_Operation
*)
252 ifr_visitor::visit_field (AST_Field
*)
258 ifr_visitor::visit_argument (AST_Argument
*)
264 ifr_visitor::visit_attribute (AST_Attribute
*)
270 ifr_visitor::visit_union (AST_Union
*)
276 ifr_visitor::visit_union_fwd (AST_UnionFwd
*)
282 ifr_visitor::visit_union_branch (AST_UnionBranch
*)
288 ifr_visitor::visit_union_label (AST_UnionLabel
*)
294 ifr_visitor::visit_constant (AST_Constant
*)
300 ifr_visitor::visit_enum_val (AST_EnumVal
*)
306 ifr_visitor::visit_array (AST_Array
*)
312 ifr_visitor::visit_sequence (AST_Sequence
*)
318 ifr_visitor::visit_string (AST_String
*)
324 ifr_visitor::visit_typedef (AST_Typedef
*)
330 ifr_visitor::visit_root (AST_Root
*)
336 ifr_visitor::visit_native (AST_Native
*)
342 ifr_visitor::visit_fixed (AST_Fixed
*node
)
344 idl_global
->err ()->fixed_unsupported (node
);
349 ifr_visitor::lock (void) const