@@ -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
@@ -1067,7 +1056,8 @@ def visit_if_op(node)
1067
1056
) ,
1068
1057
location : Location . default
1069
1058
) ,
1070
- location : Location . default
1059
+ location : Location . default ,
1060
+ beginning : "if"
1071
1061
)
1072
1062
)
1073
1063
end
@@ -1223,7 +1213,7 @@ def visit_opassign(node)
1223
1213
iseq . swap
1224
1214
iseq . pop
1225
1215
elsif node . target . is_a? ( VarField ) &&
1226
- [ Const , CVar , GVar ] . include? ( node . target . value . class )
1216
+ [ Const , CVar , GVar ] . include? ( node . target . value . class )
1227
1217
opassign_defined ( node )
1228
1218
else
1229
1219
skip_value_label = iseq . label
0 commit comments