diff options
author | Fred Hornsey <hornseyf@objectcomputing.com> | 2018-11-30 16:21:06 -0600 |
---|---|---|
committer | Fred Hornsey <hornseyf@objectcomputing.com> | 2018-11-30 16:21:06 -0600 |
commit | 1647e63b93d70567dfb0f4662c49824d9a365ef8 (patch) | |
tree | bb921a703d4a7902e48087c76c4143609e4715c7 | |
parent | f34da7a658ccfa94718480b02d84abf5f27a4fed (diff) | |
download | ATCD-1647e63b93d70567dfb0f4662c49824d9a365ef8.tar.gz |
tao_idl: Support Constant Annotation Parameters
-rw-r--r-- | TAO/TAO_IDL/ast/ast_annotation_decl.cpp | 7 | ||||
-rw-r--r-- | TAO/TAO_IDL/include/ast_annotation_decl.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp index a9efaf7f163..aa224ec54f7 100644 --- a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp +++ b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp @@ -2,6 +2,7 @@ #include "ast_annotation_member.h" #include "utl_indenter.h" #include "utl_identifier.h" +#include "ast_constant.h" AST_Decl::NodeType const AST_Annotation_Decl::NT = AST_Decl::NT_annotation_decl; @@ -92,3 +93,9 @@ AST_Annotation_Decl::fe_add_annotation_member ( return AST_Annotation_Member::narrow_from_decl (d); } + +AST_Constant * +AST_Annotation_Decl::fe_add_constant (AST_Constant *t) +{ + return AST_Constant::narrow_from_decl (fe_add_decl (t)); +} diff --git a/TAO/TAO_IDL/include/ast_annotation_decl.h b/TAO/TAO_IDL/include/ast_annotation_decl.h index e8e12388a7b..f4a08799742 100644 --- a/TAO/TAO_IDL/include/ast_annotation_decl.h +++ b/TAO/TAO_IDL/include/ast_annotation_decl.h @@ -46,6 +46,8 @@ public: virtual AST_Annotation_Member *fe_add_annotation_member ( AST_Annotation_Member *annotation_member); + + virtual AST_Constant *fe_add_constant (AST_Constant *t); }; #endif |