summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_sequence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_sequence.cpp')
-rw-r--r--TAO/TAO_IDL/ast/ast_sequence.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/ast/ast_sequence.cpp b/TAO/TAO_IDL/ast/ast_sequence.cpp
index 456767c6e3a..99f5fbdf6d9 100644
--- a/TAO/TAO_IDL/ast/ast_sequence.cpp
+++ b/TAO/TAO_IDL/ast/ast_sequence.cpp
@@ -70,26 +70,31 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// must evaluate to a positive integer) and a base type (a subclass
// of AST_Type).
-#include "idl.h"
-#include "idl_extern.h"
+#include "ast_sequence.h"
+#include "ast_expression.h"
+#include "ast_visitor.h"
+#include "utl_identifier.h"
-ACE_RCSID(ast, ast_sequence, "$Id$")
+ACE_RCSID (ast,
+ ast_sequence,
+ "$Id$")
-// Constructor(s) and destructor.
AST_Sequence::AST_Sequence (void)
: pd_max_size (0),
pd_base_type (0)
{
+ // A sequence data type is always VARIABLE.
+ this->size_type (AST_Type::VARIABLE);
}
AST_Sequence::AST_Sequence (AST_Expression *ms,
AST_Type *bt,
+ UTL_ScopedName *n,
idl_bool local,
idl_bool abstract)
- : AST_Decl(AST_Decl::NT_sequence,
- new UTL_ScopedName (new Identifier ("sequence"),
- 0),
- I_TRUE),
+ : AST_Decl (AST_Decl::NT_sequence,
+ n,
+ I_TRUE),
COMMON_Base (bt->is_local () || local,
abstract),
pd_max_size (ms),
@@ -105,6 +110,9 @@ AST_Sequence::AST_Sequence (AST_Expression *ms,
{
this->unbounded_ = I_FALSE;
}
+
+ // A sequence data type is always VARIABLE.
+ this->size_type (AST_Type::VARIABLE);
}
AST_Sequence::~AST_Sequence (void)