ext/rbs_extension/ruby_objs.c in rbs-3.4.4 vs ext/rbs_extension/ruby_objs.c in rbs-3.5.0.pre.1
- old
+ new
@@ -168,10 +168,21 @@
1,
&args
);
}
+VALUE rbs_untyped_function(VALUE return_type) {
+ VALUE args = rb_hash_new();
+ rb_hash_aset(args, ID2SYM(rb_intern("return_type")), return_type);
+
+ return CLASS_NEW_INSTANCE(
+ RBS_Types_UntypedFunction,
+ 1,
+ &args
+ );
+}
+
VALUE rbs_function(
VALUE required_positional_params,
VALUE optional_positional_params,
VALUE rest_positional_param,
VALUE trailing_positional_params,
@@ -232,14 +243,14 @@
1,
&args
);
}
-VALUE rbs_record(VALUE fields, VALUE location) {
+VALUE rbs_record(VALUE fields,VALUE location) {
VALUE args = rb_hash_new();
rb_hash_aset(args, ID2SYM(rb_intern("location")), location);
- rb_hash_aset(args, ID2SYM(rb_intern("fields")), fields);
+ rb_hash_aset(args, ID2SYM(rb_intern("all_fields")), fields);
return CLASS_NEW_INSTANCE(
RBS_Types_Record,
1,
&args
@@ -586,6 +597,5 @@
rb_hash_aset(kwargs, ID2SYM(rb_intern("namespace")), namespace);
rb_hash_aset(kwargs, ID2SYM(rb_intern("location")), location);
return CLASS_NEW_INSTANCE(RBS_AST_Directives_Use_WildcardClause, 1, &kwargs);
}
-