Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / ast / ast_extended_port.cpp
bloba43ede5aba0171f097be4c804d6b38d001feb7eb
1 #include "ast_extended_port.h"
2 #include "ast_visitor.h"
4 #include "utl_identifier.h"
5 #include "utl_indenter.h"
6 #include "global_extern.h"
8 AST_Decl::NodeType const
9 AST_Extended_Port::NT = AST_Decl::NT_ext_port;
11 AST_Extended_Port::AST_Extended_Port (
12 UTL_ScopedName *n,
13 AST_PortType *porttype_ref)
14 : COMMON_Base (false,
15 false),
16 AST_Decl (AST_Decl::NT_ext_port,
17 n),
18 AST_Field (AST_Decl::NT_ext_port,
19 porttype_ref,
24 AST_Extended_Port::~AST_Extended_Port (void)
28 AST_PortType *
29 AST_Extended_Port::port_type (void) const
31 return dynamic_cast<AST_PortType*> (this->field_type ());
34 void
35 AST_Extended_Port::destroy (void)
37 this->AST_Field::destroy ();
40 void
41 AST_Extended_Port::dump (ACE_OSTREAM_TYPE &o)
43 this->dump_i (o, "port ");
45 this->local_name ()->dump (o);
48 int
49 AST_Extended_Port::ast_accept (ast_visitor *visitor)
51 return visitor->visit_extended_port (this);
54 IMPL_NARROW_FROM_DECL (AST_Extended_Port)