Commit ef0dd710
ef0dd7102c46Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 20 files · +12 added · ~8 modified
Description
Merge pull request #1465 from ryanseys/rs-c-proc-param-typing
Type proc/lambda and forwarded-callable parameters
Details
- Commit
- ef0dd7102c46
- Parent
- 1c3f7fb151e6
- Merge parent
- 5df30dada3ba
src/analyze.hmodifiedView file
@@ -21,6 +21,15 @@
2121
/* Name of a block's idx-th required parameter, or NULL. */2222
const char *block_param_name(Compiler *c, int block, int idx);2323
24+
/* Element type an `each_with_object([])` accumulator is filled with, inferred25+
from how the memo param is pushed to (following a forwarded callable's body).26+
TY_UNKNOWN when undetermined; callers default an empty `[]` to int_array. */27+
TyKind ewo_memo_elem_type(Compiler *c, int callid);28+
29+
/* For a curry-application node, whether it completes the curry (reaches the base30+
proc's arity) and the proc's return type. Returns 1 for a recognized chain. */31+
int curry_apply_info(Compiler *c, int node, int *out_complete, TyKind *out_ret);32+
2433
/* Class index when a receiverless instance_eval/exec resolves to self, else -1. */2534
int ie_implicit_self_class(Compiler *c, int id);2635
src/analyze_infer.cmodifiedView file
Loading diff…
src/analyze_pass.cmodifiedView file
Loading diff…
src/codegen.cmodifiedView file
Loading diff…
src/codegen_call.cmodifiedView file
Loading diff…
src/codegen_fold.cmodifiedView file
Loading diff…
src/codegen_internal.hmodifiedView file
Loading diff…
src/codegen_util.cmodifiedView file
Loading diff…
test/block_forward_poly.rbaddedView file
Loading diff…
test/block_forward_poly.rb.expectedaddedView file
Loading diff…
test/each_with_object_memo.rbaddedView file
Loading diff…
test/each_with_object_memo.rb.expectedaddedView file
Loading diff…
test/proc_curry.rbaddedView file
Loading diff…
test/proc_curry.rb.expectedaddedView file
Loading diff…
test/proc_forward_arity.rbaddedView file
Loading diff…
test/proc_forward_arity.rb.expectedaddedView file
Loading diff…
test/proc_param_container_input.rbaddedView file
Loading diff…
test/proc_param_container_input.rb.expectedaddedView file
Loading diff…
test/proc_poly_param.rbaddedView file
Loading diff…
test/proc_poly_param.rb.expectedaddedView file
Loading diff…