diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp index c2847f594de..49e1870f8d3 100644 --- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp @@ -49,6 +49,9 @@ be_visitor_operation_rettype_return_cs::visit_array (be_array *) // Grab the out stream TAO_OutStream *os = this->ctx_->stream (); + // os->indent (); + // *os << "return _tao_retval;\n"; + *os << "_tao_retval"; return 0; } @@ -58,6 +61,8 @@ be_visitor_operation_rettype_return_cs::visit_enum (be_enum *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } @@ -67,6 +72,8 @@ be_visitor_operation_rettype_return_cs::visit_interface (be_interface *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + // os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } @@ -76,6 +83,8 @@ be_visitor_operation_rettype_return_cs::visit_interface_fwd (be_interface_fwd *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } @@ -87,6 +96,8 @@ be_visitor_operation_rettype_return_cs::visit_valuetype (be_valuetype *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } @@ -96,6 +107,8 @@ be_visitor_operation_rettype_return_cs::visit_valuetype_fwd (be_valuetype_fwd *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } @@ -107,11 +120,14 @@ be_visitor_operation_rettype_return_cs::visit_predefined_type (be_predefined_typ { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); switch (node->pt ()) { case AST_PredefinedType::PT_void: + // *os << "return;\n"; break; default: + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; break; } @@ -123,6 +139,8 @@ be_visitor_operation_rettype_return_cs::visit_sequence (be_sequence *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } @@ -132,6 +150,8 @@ be_visitor_operation_rettype_return_cs::visit_string (be_string *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } @@ -141,6 +161,8 @@ be_visitor_operation_rettype_return_cs::visit_structure (be_structure *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } @@ -166,6 +188,8 @@ be_visitor_operation_rettype_return_cs::visit_union (be_union *) { TAO_OutStream *os = this->ctx_->stream (); // grab the out stream + //os->indent (); + // *os << "return _tao_retval;\n"; *os << "_tao_retval"; return 0; } |