@@ -382,9 +382,9 @@ def visit_array(node)
382
382
if ( compiled = RubyVisitor . compile ( node ) )
383
383
iseq . duparray ( compiled )
384
384
elsif node . contents && node . contents . parts . length == 1 &&
385
- node . contents . parts . first . is_a? ( BareAssocHash ) &&
386
- node . contents . parts . first . assocs . length == 1 &&
387
- node . contents . parts . first . assocs . first . is_a? ( AssocSplat )
385
+ node . contents . parts . first . is_a? ( BareAssocHash ) &&
386
+ node . contents . parts . first . assocs . length == 1 &&
387
+ node . contents . parts . first . assocs . first . is_a? ( AssocSplat )
388
388
iseq . putspecialobject ( PutSpecialObject ::OBJECT_VMCORE )
389
389
iseq . newhash ( 0 )
390
390
visit ( node . contents . parts . first )
@@ -911,17 +911,6 @@ def visit_else(node)
911
911
iseq . pop unless last_statement?
912
912
end
913
913
914
- def visit_elsif ( node )
915
- visit_if (
916
- IfNode . new (
917
- predicate : node . predicate ,
918
- statements : node . statements ,
919
- consequent : node . consequent ,
920
- location : node . location
921
- )
922
- )
923
- end
924
-
925
914
def visit_ensure ( node )
926
915
end
927
916
@@ -1057,7 +1046,8 @@ def visit_if_op(node)
1057
1046
statements : node . falsy ,
1058
1047
location : Location . default
1059
1048
) ,
1060
- location : Location . default
1049
+ location : Location . default ,
1050
+ beginning : "if"
1061
1051
)
1062
1052
)
1063
1053
end
@@ -1213,7 +1203,7 @@ def visit_opassign(node)
1213
1203
iseq . swap
1214
1204
iseq . pop
1215
1205
elsif node . target . is_a? ( VarField ) &&
1216
- [ Const , CVar , GVar ] . include? ( node . target . value . class )
1206
+ [ Const , CVar , GVar ] . include? ( node . target . value . class )
1217
1207
opassign_defined ( node )
1218
1208
else
1219
1209
skip_value_label = iseq . label
0 commit comments