diff options
Diffstat (limited to 'TAO/TAO_IDL/include/ast_expression.h')
-rw-r--r-- | TAO/TAO_IDL/include/ast_expression.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/include/ast_expression.h b/TAO/TAO_IDL/include/ast_expression.h index 521aed16203..ec2dfc4eb22 100644 --- a/TAO/TAO_IDL/include/ast_expression.h +++ b/TAO/TAO_IDL/include/ast_expression.h @@ -74,6 +74,7 @@ class UTL_Scope; class ast_visitor; class AST_Decl; class AST_Param_Holder; +class AST_Enum; // Representation of expression values. @@ -292,6 +293,12 @@ public: static const char *exprtype_to_string (ExprType t); + /// Pointer to enum of this value if applicable + ///{ + AST_Enum *enum_parent (); + void enum_parent (AST_Enum *node); + ///} + protected: // Evaluate different sets of operators. AST_ExprValue *eval_bin_op (EvalKind ek); @@ -337,12 +344,14 @@ private: AST_Param_Holder *param_holder_; // Non-zero if we were created from a reference template param. -private: // Fill out the lineno, filename and definition scope details. void fill_definition_details (void); // Internal evaluation. virtual AST_ExprValue *eval_internal (EvalKind ek); + + /// Pointer to enum of this value if applicable + AST_Enum *enum_parent_; }; #endif // _AST_EXPR_VAL_AST_EXPR_VAL_HH |