@@ -71,12 +71,13 @@ VALUE rbs_ast_decl_class_super(VALUE name, VALUE args, VALUE location) {
7171 );
7272}
7373
74- VALUE rbs_ast_decl_class_alias (VALUE new_name , VALUE old_name , VALUE location , VALUE comment ) {
74+ VALUE rbs_ast_decl_class_alias (VALUE new_name , VALUE old_name , VALUE location , VALUE comment , VALUE annotations ) {
7575 VALUE _init_kwargs = rb_hash_new ();
7676 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("new_name" )), new_name );
7777 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("old_name" )), old_name );
7878 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("location" )), location );
7979 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("comment" )), comment );
80+ rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("annotations" )), annotations );
8081
8182 return CLASS_NEW_INSTANCE (
8283 RBS_AST_Declarations_ClassAlias ,
@@ -85,12 +86,13 @@ VALUE rbs_ast_decl_class_alias(VALUE new_name, VALUE old_name, VALUE location, V
8586 );
8687}
8788
88- VALUE rbs_ast_decl_constant (VALUE name , VALUE type , VALUE location , VALUE comment ) {
89+ VALUE rbs_ast_decl_constant (VALUE name , VALUE type , VALUE location , VALUE comment , VALUE annotations ) {
8990 VALUE _init_kwargs = rb_hash_new ();
9091 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("name" )), name );
9192 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("type" )), type );
9293 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("location" )), location );
9394 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("comment" )), comment );
95+ rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("annotations" )), annotations );
9496
9597 return CLASS_NEW_INSTANCE (
9698 RBS_AST_Declarations_Constant ,
@@ -99,12 +101,13 @@ VALUE rbs_ast_decl_constant(VALUE name, VALUE type, VALUE location, VALUE commen
99101 );
100102}
101103
102- VALUE rbs_ast_decl_global (VALUE name , VALUE type , VALUE location , VALUE comment ) {
104+ VALUE rbs_ast_decl_global (VALUE name , VALUE type , VALUE location , VALUE comment , VALUE annotations ) {
103105 VALUE _init_kwargs = rb_hash_new ();
104106 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("name" )), name );
105107 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("type" )), type );
106108 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("location" )), location );
107109 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("comment" )), comment );
110+ rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("annotations" )), annotations );
108111
109112 return CLASS_NEW_INSTANCE (
110113 RBS_AST_Declarations_Global ,
@@ -159,12 +162,13 @@ VALUE rbs_ast_decl_module_self(VALUE name, VALUE args, VALUE location) {
159162 );
160163}
161164
162- VALUE rbs_ast_decl_module_alias (VALUE new_name , VALUE old_name , VALUE location , VALUE comment ) {
165+ VALUE rbs_ast_decl_module_alias (VALUE new_name , VALUE old_name , VALUE location , VALUE comment , VALUE annotations ) {
163166 VALUE _init_kwargs = rb_hash_new ();
164167 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("new_name" )), new_name );
165168 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("old_name" )), old_name );
166169 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("location" )), location );
167170 rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("comment" )), comment );
171+ rb_hash_aset (_init_kwargs , ID2SYM (rb_intern ("annotations" )), annotations );
168172
169173 return CLASS_NEW_INSTANCE (
170174 RBS_AST_Declarations_ModuleAlias ,
0 commit comments