diff options
author | yui-knk <spiketeika@gmail.com> | 2023-09-28 20:44:45 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-09-30 13:11:32 +0900 |
commit | d293d9e1917d28bf77f690e3c944b6ad876efd0c (patch) | |
tree | 557e72c140b64c314835444521489758d042a498 /rubyparser.h | |
parent | 1b97c17e0364c532bc5651edaae9ce77a432eb1a (diff) |
Expand pattern_info struct into ARYPTN Node and FNDPTN Node
Diffstat (limited to 'rubyparser.h')
-rw-r--r-- | rubyparser.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/rubyparser.h b/rubyparser.h index 4e22f8d350..08c20678ac 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -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 { |