@@ -382,9 +382,9 @@ def visit_array(node)
382382 if ( compiled = RubyVisitor . compile ( node ) )
383383 iseq . duparray ( compiled )
384384 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 )
388388 iseq . putspecialobject ( PutSpecialObject ::OBJECT_VMCORE )
389389 iseq . newhash ( 0 )
390390 visit ( node . contents . parts . first )
@@ -911,17 +911,6 @@ def visit_else(node)
911911 iseq . pop unless last_statement?
912912 end
913913
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-
925914 def visit_ensure ( node )
926915 end
927916
@@ -1057,7 +1046,8 @@ def visit_if_op(node)
10571046 statements : node . falsy ,
10581047 location : Location . default
10591048 ) ,
1060- location : Location . default
1049+ location : Location . default ,
1050+ beginning : "if"
10611051 )
10621052 )
10631053 end
@@ -1213,7 +1203,7 @@ def visit_opassign(node)
12131203 iseq . swap
12141204 iseq . pop
12151205 elsif node . target . is_a? ( VarField ) &&
1216- [ Const , CVar , GVar ] . include? ( node . target . value . class )
1206+ [ Const , CVar , GVar ] . include? ( node . target . value . class )
12171207 opassign_defined ( node )
12181208 else
12191209 skip_value_label = iseq . label
0 commit comments