File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
spec/rubocop/ast/fixtures Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -118,15 +118,15 @@ def children_count_check_code(range)
118
118
many_node_children = %i[ dstr dsym xstr regexp array hash pair
119
119
mlhs masgn or_asgn and_asgn rasgn mrasgn
120
120
undef alias args super yield or and
121
- while_post until_post iflipflop eflipflop
121
+ while_post until_post
122
122
match_with_lvasgn begin kwbegin return
123
123
in_match match_alt break next
124
124
match_as array_pattern array_pattern_with_tail
125
125
hash_pattern const_pattern find_pattern
126
126
index indexasgn procarg0 kwargs ]
127
127
many_opt_node_children = %i[ case rescue resbody ensure for when
128
128
case_match in_pattern irange erange
129
- match_pattern match_pattern_p ]
129
+ match_pattern match_pattern_p iflipflop eflipflop ]
130
130
131
131
### Callbacks for above
132
132
def_callback no_children
Original file line number Diff line number Diff line change @@ -1148,6 +1148,18 @@ class A < B
1148
1148
#----
1149
1149
if foo ...bar ; end
1150
1150
1151
+ #----
1152
+ !( ...bar )
1153
+
1154
+ #----
1155
+ !( ..bar )
1156
+
1157
+ #----
1158
+ !( bar ...)
1159
+
1160
+ #----
1161
+ !( bar ..)
1162
+
1151
1163
#----
1152
1164
!( foo ...bar )
1153
1165
You can’t perform that action at this time.
0 commit comments