summaryrefslogtreecommitdiff
path: root/TAO
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-17 21:19:43 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-17 21:19:43 +0000
commit196ced88c88cb97dd7f9282d9f725e2952215269 (patch)
tree4f7a9fbf33e5876268b41369d13b0cec5dcdabee /TAO
parent426323554c3bdc5fcfc1b3d1c57c14ea68fd3e52 (diff)
downloadATCD-196ced88c88cb97dd7f9282d9f725e2952215269.tar.gz
ChangeLogTag: Tue Oct 17 16:08:13 2000 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/request_info_arglist.cpp202
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/request_info_ch.cpp105
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/interceptors_arglist.cpp2
-rw-r--r--TAO/TAO_IDL/be_include/be_codegen.h4
4 files changed, 42 insertions, 271 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/request_info_arglist.cpp b/TAO/TAO_IDL/be/be_visitor_argument/request_info_arglist.cpp
index f19d7fec9e3..d7071f6c2b1 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/request_info_arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/request_info_arglist.cpp
@@ -97,25 +97,16 @@ int be_visitor_args_request_info_arglist::visit_array (be_array *node)
be_decl* scope =
be_scope::narrow_from_scope (bt->defined_in ())->decl ();
- AST_Decl::NodeType nt = scope->node_type ();
-
switch (this->direction ())
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ")";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -126,19 +117,12 @@ int be_visitor_args_request_info_arglist::visit_array (be_array *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ")";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -149,19 +133,12 @@ int be_visitor_args_request_info_arglist::visit_array (be_array *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << "_out)";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -197,25 +174,16 @@ int be_visitor_args_request_info_arglist::visit_enum (be_enum *node)
be_decl* scope =
be_scope::narrow_from_scope (bt->defined_in ())->decl ();
- AST_Decl::NodeType nt = scope->node_type ();
-
switch (this->direction ())
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ")" << " &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -226,19 +194,12 @@ int be_visitor_args_request_info_arglist::visit_enum (be_enum *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ") &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -249,19 +210,12 @@ int be_visitor_args_request_info_arglist::visit_enum (be_enum *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << "_out)";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -358,8 +312,6 @@ int be_visitor_args_request_info_arglist::visit_predefined_type (
be_decl* scope =
be_scope::narrow_from_scope (bt->defined_in ())->decl ();
- AST_Decl::NodeType nt = scope->node_type ();
-
// Check if the type is an any.
if (node->pt () == AST_PredefinedType::PT_any)
{
@@ -367,19 +319,12 @@ int be_visitor_args_request_info_arglist::visit_predefined_type (
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ")" << " &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -390,19 +335,12 @@ int be_visitor_args_request_info_arglist::visit_predefined_type (
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ")" << " &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -413,19 +351,12 @@ int be_visitor_args_request_info_arglist::visit_predefined_type (
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << "_out)";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -457,19 +388,12 @@ int be_visitor_args_request_info_arglist::visit_predefined_type (
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ")" << " &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -480,19 +404,12 @@ int be_visitor_args_request_info_arglist::visit_predefined_type (
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ")" << " &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -503,19 +420,12 @@ int be_visitor_args_request_info_arglist::visit_predefined_type (
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << "_out)";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -552,25 +462,16 @@ int be_visitor_args_request_info_arglist::visit_sequence (be_sequence *node)
be_decl* scope =
be_scope::narrow_from_scope (bt->defined_in ())->decl ();
- AST_Decl::NodeType nt = scope->node_type ();
-
switch (this->direction ())
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ") &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -581,19 +482,12 @@ int be_visitor_args_request_info_arglist::visit_sequence (be_sequence *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ") &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -604,19 +498,12 @@ int be_visitor_args_request_info_arglist::visit_sequence (be_sequence *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << "_out)";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -690,26 +577,16 @@ int be_visitor_args_request_info_arglist::visit_structure (be_structure *node)
be_decl* scope =
be_scope::narrow_from_scope (bt->defined_in ())->decl ();
- AST_Decl::NodeType nt = scope->node_type ();
-
switch (this->direction ())
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union)
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ") &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -720,19 +597,12 @@ int be_visitor_args_request_info_arglist::visit_structure (be_structure *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ") &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -743,19 +613,12 @@ int be_visitor_args_request_info_arglist::visit_structure (be_structure *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union)
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << "_out)";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -791,25 +654,16 @@ int be_visitor_args_request_info_arglist::visit_union (be_union *node)
be_decl* scope =
be_scope::narrow_from_scope (bt->defined_in ())->decl ();
- AST_Decl::NodeType nt = scope->node_type ();
-
switch (this->direction ())
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ") &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -820,19 +674,12 @@ int be_visitor_args_request_info_arglist::visit_union (be_union *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << ") &";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
@@ -843,19 +690,12 @@ int be_visitor_args_request_info_arglist::visit_union (be_union *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (nt == AST_Decl::NT_interface || nt == AST_Decl::NT_union )
- && this->ctx_->sub_state ()
- == TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB)
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
*os << bt->local_name ();
*os << "_out)";
-
- // Reset the substate.
- this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN);
}
else
{
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/request_info_ch.cpp b/TAO/TAO_IDL/be/be_visitor_argument/request_info_ch.cpp
index dc1a0de837a..a090d1bd95b 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/request_info_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/request_info_ch.cpp
@@ -99,10 +99,7 @@ int be_visitor_args_request_info_ch::visit_array (be_array *node)
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -118,10 +115,7 @@ int be_visitor_args_request_info_ch::visit_array (be_array *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -137,10 +131,7 @@ int be_visitor_args_request_info_ch::visit_array (be_array *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -185,10 +176,7 @@ int be_visitor_args_request_info_ch::visit_enum (be_enum *node)
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -204,10 +192,7 @@ int be_visitor_args_request_info_ch::visit_enum (be_enum *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -223,10 +208,7 @@ int be_visitor_args_request_info_ch::visit_enum (be_enum *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -336,10 +318,7 @@ int be_visitor_args_request_info_ch::visit_predefined_type (
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -355,10 +334,7 @@ int be_visitor_args_request_info_ch::visit_predefined_type (
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -374,10 +350,7 @@ int be_visitor_args_request_info_ch::visit_predefined_type (
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -414,10 +387,7 @@ int be_visitor_args_request_info_ch::visit_predefined_type (
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -433,10 +403,7 @@ int be_visitor_args_request_info_ch::visit_predefined_type (
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -452,10 +419,7 @@ int be_visitor_args_request_info_ch::visit_predefined_type (
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -501,10 +465,7 @@ int be_visitor_args_request_info_ch::visit_sequence (be_sequence *node)
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -520,10 +481,7 @@ int be_visitor_args_request_info_ch::visit_sequence (be_sequence *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -536,10 +494,7 @@ int be_visitor_args_request_info_ch::visit_sequence (be_sequence *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -623,10 +578,7 @@ int be_visitor_args_request_info_ch::visit_structure (be_structure *node)
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -642,10 +594,7 @@ int be_visitor_args_request_info_ch::visit_structure (be_structure *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -661,10 +610,7 @@ int be_visitor_args_request_info_ch::visit_structure (be_structure *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -709,10 +655,7 @@ int be_visitor_args_request_info_ch::visit_union (be_union *node)
{
case AST_Argument::dir_IN:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "const ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -728,10 +671,7 @@ int be_visitor_args_request_info_ch::visit_union (be_union *node)
}
case AST_Argument::dir_INOUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
@@ -747,10 +687,7 @@ int be_visitor_args_request_info_ch::visit_union (be_union *node)
}
case AST_Argument::dir_OUT:
{
- if (bt->is_nested ()
- && !bt->imported ()
- && (scope->node_type () == AST_Decl::NT_interface
- || scope->node_type () == AST_Decl::NT_union ))
+ if (scope == this->ctx_->scope ())
{
*os << "ACE_NESTED_CLASS (";
*os << scope->name () << ",";
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/interceptors_arglist.cpp b/TAO/TAO_IDL/be/be_visitor_operation/interceptors_arglist.cpp
index ae69ff2408a..873b5fbc1c0 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/interceptors_arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/interceptors_arglist.cpp
@@ -219,14 +219,12 @@ be_visitor_operation_interceptors_arglist::visit_argument (be_argument *node)
{
case TAO_CodeGen::TAO_OPERATION_INTERCEPTORS_ARGLIST_CH:
ctx.state (TAO_CodeGen::TAO_ARGUMENT_INTERCEPTORS_INFO_ARGLIST_CH);
- ctx.sub_state (TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB);
break;
case TAO_CodeGen::TAO_OPERATION_INTERCEPTORS_INFO_ARGLIST_CH:
ctx.state (TAO_CodeGen::TAO_ARGUMENT_INTERCEPTORS_ARGLIST_CH);
break;
case TAO_CodeGen::TAO_OPERATION_INTERCEPTORS_ARGLIST_CS:
ctx.state (TAO_CodeGen::TAO_ARGUMENT_INTERCEPTORS_INFO_ARGLIST_CH);
- ctx.sub_state (TAO_CodeGen::TAO_INTERCEPTORS_INFO_ARGUMENT_STUB);
// ctx.state (TAO_CodeGen::TAO_ARGUMENT_ARGLIST_OTHERS);
break;
case TAO_CodeGen::TAO_OPERATION_INTERCEPTORS_ARG_INFO_CS:
diff --git a/TAO/TAO_IDL/be_include/be_codegen.h b/TAO/TAO_IDL/be_include/be_codegen.h
index 4134b3f260d..77d6e243279 100644
--- a/TAO/TAO_IDL/be_include/be_codegen.h
+++ b/TAO/TAO_IDL/be_include/be_codegen.h
@@ -477,10 +477,6 @@ public:
// Generating the _var template parameter in sequence of arrays.
TAO_ARRAY_SEQ_CH_TEMPLATE_VAR,
- // Generating the arglist for the stub version of the
- // interceptors request info class constructor.
- TAO_INTERCEPTORS_INFO_ARGUMENT_STUB,
-
// Used to denote either error or don't care.
TAO_SUB_STATE_UNKNOWN
};