ext/rbs_extension/ruby_objs.c in rbs-2.1.0 vs ext/rbs_extension/ruby_objs.c in rbs-2.2.0

- old
+ new

@@ -398,19 +398,20 @@ 1, &args ); } -VALUE rbs_ast_members_method_definition(VALUE name, VALUE kind, VALUE types, VALUE annotations, VALUE location, VALUE comment, VALUE overload) { +VALUE rbs_ast_members_method_definition(VALUE name, VALUE kind, VALUE types, VALUE annotations, VALUE location, VALUE comment, VALUE overload, VALUE visibility) { VALUE args = rb_hash_new(); rb_hash_aset(args, ID2SYM(rb_intern("name")), name); rb_hash_aset(args, ID2SYM(rb_intern("kind")), kind); rb_hash_aset(args, ID2SYM(rb_intern("types")), types); rb_hash_aset(args, ID2SYM(rb_intern("annotations")), annotations); rb_hash_aset(args, ID2SYM(rb_intern("location")), location); rb_hash_aset(args, ID2SYM(rb_intern("comment")), comment); rb_hash_aset(args, ID2SYM(rb_intern("overload")), overload); + rb_hash_aset(args, ID2SYM(rb_intern("visibility")), visibility); return CLASS_NEW_INSTANCE( RBS_AST_Members_MethodDefinition, 1, &args @@ -444,18 +445,19 @@ 1, &args ); } -VALUE rbs_ast_members_attribute(VALUE klass, VALUE name, VALUE type, VALUE ivar_name, VALUE kind, VALUE annotations, VALUE location, VALUE comment) { +VALUE rbs_ast_members_attribute(VALUE klass, VALUE name, VALUE type, VALUE ivar_name, VALUE kind, VALUE annotations, VALUE location, VALUE comment, VALUE visibility) { VALUE args = rb_hash_new(); rb_hash_aset(args, ID2SYM(rb_intern("name")), name); rb_hash_aset(args, ID2SYM(rb_intern("type")), type); rb_hash_aset(args, ID2SYM(rb_intern("ivar_name")), ivar_name); rb_hash_aset(args, ID2SYM(rb_intern("kind")), kind); rb_hash_aset(args, ID2SYM(rb_intern("annotations")), annotations); rb_hash_aset(args, ID2SYM(rb_intern("location")), location); rb_hash_aset(args, ID2SYM(rb_intern("comment")), comment); + rb_hash_aset(args, ID2SYM(rb_intern("visibility")), visibility); return CLASS_NEW_INSTANCE( klass, 1, &args