1 #include "ast_connector.h"
2 #include "ast_visitor.h"
3 #include "utl_identifier.h"
4 #include "utl_indenter.h"
6 #include "global_extern.h"
8 AST_Decl::NodeType
const
9 AST_Connector::NT
= AST_Decl::NT_connector
;
11 AST_Connector::AST_Connector (
13 AST_Connector
*base_connector
)
16 AST_Decl (AST_Decl::NT_connector
,
18 AST_Type (AST_Decl::NT_connector
,
20 UTL_Scope (AST_Decl::NT_connector
),
35 if (!this->imported ())
37 idl_global
->connector_seen_
= true;
41 AST_Connector::~AST_Connector (void)
46 AST_Connector::base_connector (void) const
48 return dynamic_cast<AST_Connector
*> (this->pd_base_component
);
52 AST_Connector::destroy (void)
54 this->AST_Component::destroy ();
58 AST_Connector::dump (ACE_OSTREAM_TYPE
&o
)
60 this->dump_i (o
, "connector ");
62 this->local_name ()->dump (o
);
64 this->dump_i (o
, " ");
66 if (this->pd_base_component
!= 0)
68 this->dump_i (o
, ": ");
69 this->pd_base_component
->local_name ()->dump (o
);
72 this->dump_i (o
, " {\n");
75 idl_global
->indent ()->skip_to (o
);
77 this->dump_i (o
, "}");
81 AST_Connector::ast_accept (ast_visitor
*visitor
)
83 return visitor
->visit_connector (this);
86 IMPL_NARROW_FROM_DECL (AST_Connector
)
87 IMPL_NARROW_FROM_SCOPE (AST_Connector
)