Expand pattern_info struct into ARYPTN Node and FNDPTN Node

This commit is contained in:
yui-knk 2023-09-28 20:44:45 +09:00 committed by Yuichiro Kaneko
parent 1b97c17e03
commit d293d9e191
6 changed files with 62 additions and 87 deletions

View file

@ -963,7 +963,9 @@ typedef struct RNode_ARYPTN {
NODE node;
struct RNode *nd_pconst;
struct rb_ary_pattern_info *nd_apinfo;
NODE *pre_args;
NODE *rest_arg;
NODE *post_args;
} rb_node_aryptn_t;
typedef struct RNode_HSHPTN {
@ -978,7 +980,9 @@ typedef struct RNode_FNDPTN {
NODE node;
struct RNode *nd_pconst;
struct rb_fnd_pattern_info *nd_fpinfo;
NODE *pre_rest_arg;
NODE *args;
NODE *post_rest_arg;
} rb_node_fndptn_t;
typedef struct RNode_ERROR {
@ -1155,18 +1159,6 @@ struct rb_args_info {
unsigned int forwarding: 1;
};
struct rb_ary_pattern_info {
NODE *pre_args;
NODE *rest_arg;
NODE *post_args;
};
struct rb_fnd_pattern_info {
NODE *pre_rest_arg;
NODE *args;
NODE *post_rest_arg;
};
typedef struct node_buffer_struct node_buffer_t;
/* T_IMEMO/ast */
typedef struct rb_ast_body_struct {