mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Expand pattern_info struct into ARYPTN Node and FNDPTN Node
This commit is contained in:
parent
1b97c17e03
commit
d293d9e191
6 changed files with 62 additions and 87 deletions
20
rubyparser.h
20
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue