ext/rbs_extension/ruby_objs.c in rbs-2.6.0 vs ext/rbs_extension/ruby_objs.c in rbs-2.7.0.pre.1

- old
+ new

@@ -142,14 +142,15 @@ 1, &args ); } -VALUE rbs_block(VALUE type, VALUE required) { +VALUE rbs_block(VALUE type, VALUE required, VALUE self_type) { VALUE args = rb_hash_new(); rb_hash_aset(args, ID2SYM(rb_intern("type")), type); rb_hash_aset(args, ID2SYM(rb_intern("required")), required); + rb_hash_aset(args, ID2SYM(rb_intern("self_type")), self_type); return CLASS_NEW_INSTANCE( RBS_Types_Block, 1, &args @@ -194,14 +195,15 @@ 1, &args ); } -VALUE rbs_proc(VALUE function, VALUE block, VALUE location) { +VALUE rbs_proc(VALUE function, VALUE block, VALUE location, VALUE self_type) { VALUE args = rb_hash_new(); rb_hash_aset(args, ID2SYM(rb_intern("type")), function); rb_hash_aset(args, ID2SYM(rb_intern("block")), block); rb_hash_aset(args, ID2SYM(rb_intern("location")), location); + rb_hash_aset(args, ID2SYM(rb_intern("self_type")), self_type); return CLASS_NEW_INSTANCE( RBS_Types_Proc, 1, &args