diff options
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_predefined_type.cpp')
-rw-r--r-- | TAO/TAO_IDL/ast/ast_predefined_type.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/ast/ast_predefined_type.cpp b/TAO/TAO_IDL/ast/ast_predefined_type.cpp index d53ee4bddfd..33a39e4739a 100644 --- a/TAO/TAO_IDL/ast/ast_predefined_type.cpp +++ b/TAO/TAO_IDL/ast/ast_predefined_type.cpp @@ -212,6 +212,23 @@ AST_PredefinedType::dump (ACE_OSTREAM_TYPE &o) AST_Decl::dump (o); } +// Compute the size type of the node in question. +int +AST_PredefinedType::compute_size_type (void) +{ + if (this->pt () == AST_PredefinedType::PT_any + || this->pt () == AST_PredefinedType::PT_pseudo) + { + this->size_type (AST_Type::VARIABLE); + } + else + { + this->size_type (AST_Type::FIXED); + } + + return 0; +} + int AST_PredefinedType::ast_accept (ast_visitor *visitor) { |