summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/util/utl_scope.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/util/utl_scope.cpp')
-rw-r--r--TAO/TAO_IDL/util/utl_scope.cpp61
1 files changed, 59 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/util/utl_scope.cpp b/TAO/TAO_IDL/util/utl_scope.cpp
index 48d0a746726..5efb08ef8cb 100644
--- a/TAO/TAO_IDL/util/utl_scope.cpp
+++ b/TAO/TAO_IDL/util/utl_scope.cpp
@@ -71,6 +71,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_string.h"
#include "ast_valuetype.h"
#include "ast_valuetype_fwd.h"
+#include "ast_component.h"
+#include "ast_component_fwd.h"
+#include "ast_home.h"
#include "ast_typedef.h"
#include "ast_type.h"
#include "ast_root.h"
@@ -351,8 +354,8 @@ UTL_Scope::lookup_for_add (AST_Decl *d,
return 0;
}
- return lookup_by_name_local (id,
- 0);
+ return this->lookup_by_name_local (id,
+ 0);
}
int
@@ -501,6 +504,42 @@ UTL_Scope::add_valuetype_fwd (AST_ValueTypeFwd *i)
return i;
}
+AST_Component *
+UTL_Scope::add_component (AST_Component *i)
+{
+ if (i == 0)
+ {
+ return 0;
+ }
+
+ i->set_added (I_TRUE);
+ return i;
+}
+
+AST_ComponentFwd *
+UTL_Scope::add_component_fwd (AST_ComponentFwd *i)
+{
+ if (i == 0)
+ {
+ return 0;
+ }
+
+ i->set_added (I_TRUE);
+ return i;
+}
+
+AST_Home *
+UTL_Scope::add_home (AST_Home *i)
+{
+ if (i == 0)
+ {
+ return 0;
+ }
+
+ i->set_added (I_TRUE);
+ return i;
+}
+
AST_Exception *
UTL_Scope::add_exception (AST_Exception *e)
{
@@ -848,6 +887,24 @@ UTL_Scope::fe_add_valuetype_fwd (AST_ValueTypeFwd *)
return 0;
}
+AST_Component *
+UTL_Scope::fe_add_component (AST_Component *)
+{
+ return 0;
+}
+
+AST_ComponentFwd *
+UTL_Scope::fe_add_component_fwd (AST_ComponentFwd *)
+{
+ return 0;
+}
+
+AST_Home *
+UTL_Scope::fe_add_home (AST_Home *)
+{
+ return 0;
+}
+
AST_Exception *
UTL_Scope::fe_add_exception (AST_Exception *)
{