2 * Abstract Syntax Tree Node for a declaration of an annotation.
5 #ifndef AST_ANNOTATION_DECL_HEADER
6 #define AST_ANNOTATION_DECL_HEADER
8 #include "ast_structure.h"
11 * Abstract Syntax Tree Node for a declaration of an annotation.
13 class TAO_IDL_FE_Export AST_Annotation_Decl
: public virtual AST_Structure
17 AST_Annotation_Decl (UTL_ScopedName
*name
);
19 virtual ~AST_Annotation_Decl ();
23 DEF_NARROW_FROM_DECL (AST_Annotation_Decl
);
24 DEF_NARROW_FROM_SCOPE (AST_Annotation_Decl
);
28 virtual void dump (ACE_OSTREAM_TYPE
&o
);
31 virtual void destroy ();
33 static AST_Decl::NodeType
const NT
;
36 * Work around for AST node lookup, so that annotations do not conflict with
37 * other IDL types and variables that have the same name. This is done by
38 * prepending '@' to all annotation names.
41 static void escape_name (Identifier
*name
);
42 static void escape_name (UTL_ScopedName
*name
);
45 virtual bool annotatable () const;
47 virtual AST_Annotation_Member
*fe_add_annotation_member (
48 AST_Annotation_Member
*annotation_member
);
50 virtual AST_Constant
*fe_add_constant (AST_Constant
*t
);
52 virtual int ast_accept (ast_visitor
*visitor
);
55 * Should AMI visit this node? (NO)
57 virtual bool ami_visit ();