summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
index dc9fc385ba3..8b5550bd068 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
@@ -56,6 +56,7 @@ int be_visitor_args_upcall_ss::visit_argument (be_argument *node)
// Different types have different mappings when used as in/out or
// inout parameters. Let this visitor deal with the type
+
if (bt->accept (this) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -74,6 +75,7 @@ int be_visitor_args_upcall_ss::visit_array (be_array *node)
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -109,6 +111,7 @@ int be_visitor_args_upcall_ss::visit_enum (be_enum *)
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -125,6 +128,7 @@ int be_visitor_args_upcall_ss::visit_interface (be_interface *)
TAO_OutStream *os = this->ctx_->stream (); // get output stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -142,6 +146,7 @@ int be_visitor_args_upcall_ss::visit_interface (be_interface *)
*os << arg->local_name () << ".inout ()";
break;
case AST_Argument::dir_OUT:
+ // *os << arg->local_name ();
if (this->ctx_->state ()
== TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS)
*os << arg->local_name ();
@@ -157,6 +162,7 @@ int be_visitor_args_upcall_ss::visit_interface_fwd (be_interface_fwd *)
TAO_OutStream *os = this->ctx_->stream (); // get output stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -174,6 +180,7 @@ int be_visitor_args_upcall_ss::visit_interface_fwd (be_interface_fwd *)
*os << arg->local_name () << ".inout ()";
break;
case AST_Argument::dir_OUT:
+ // *os << arg->local_name ();
if (this->ctx_->state ()
== TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS)
*os << arg->local_name ();
@@ -191,6 +198,7 @@ int be_visitor_args_upcall_ss::visit_valuetype (be_valuetype *)
TAO_OutStream *os = this->ctx_->stream (); // get output stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -208,6 +216,7 @@ int be_visitor_args_upcall_ss::visit_valuetype (be_valuetype *)
*os << arg->local_name () << ".inout ()";
break;
case AST_Argument::dir_OUT:
+ // *os << arg->local_name ();
if (this->ctx_->state ()
== TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS)
*os << arg->local_name ();
@@ -223,6 +232,7 @@ int be_visitor_args_upcall_ss::visit_valuetype_fwd (be_valuetype_fwd *)
TAO_OutStream *os = this->ctx_->stream (); // get output stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -240,6 +250,7 @@ int be_visitor_args_upcall_ss::visit_valuetype_fwd (be_valuetype_fwd *)
*os << arg->local_name () << ".inout ()";
break;
case AST_Argument::dir_OUT:
+ // *os << arg->local_name ();
if (this->ctx_->state ()
== TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS)
*os << arg->local_name ();
@@ -258,6 +269,7 @@ int be_visitor_args_upcall_ss::visit_predefined_type (be_predefined_type *node)
TAO_OutStream *os = this->ctx_->stream (); // get output stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
// check if the type is an any
if (node->pt () == AST_PredefinedType::PT_any)
{
@@ -295,6 +307,7 @@ int be_visitor_args_upcall_ss::visit_predefined_type (be_predefined_type *node)
*os << arg->local_name () << ".inout ()";
break;
case AST_Argument::dir_OUT:
+ // *os << arg->local_name ();
if (this->ctx_->state ()
== TAO_CodeGen::TAO_ARGUMENT_COLLOCATED_UPCALL_SS)
*os << arg->local_name ();
@@ -323,6 +336,7 @@ int be_visitor_args_upcall_ss::visit_sequence (be_sequence *)
TAO_OutStream *os = this->ctx_->stream (); // get the stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -345,6 +359,7 @@ int be_visitor_args_upcall_ss::visit_string (be_string *)
TAO_OutStream *os = this->ctx_->stream (); // get the stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -377,6 +392,7 @@ int be_visitor_args_upcall_ss::visit_structure (be_structure *node)
TAO_OutStream *os = this->ctx_->stream (); // get the stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN:
@@ -402,6 +418,7 @@ int be_visitor_args_upcall_ss::visit_union (be_union *node)
TAO_OutStream *os = this->ctx_->stream (); // get the stream
be_argument *arg = this->ctx_->be_node_as_argument (); // get the argument
// node
+ os->indent ();
switch (this->direction ())
{
case AST_Argument::dir_IN: