lib/synvert/rewriter/action.rb in synvert-0.0.7 vs lib/synvert/rewriter/action.rb in synvert-0.0.8

- old
+ new

@@ -45,10 +45,14 @@ end end class Rewriter::AppendAction < Rewriter::Action def begin_pos - @node.loc.expression.end_pos - 4 + if :begin == @node.type + @node.loc.expression.end_pos + else + @node.loc.expression.end_pos - 4 + end end def end_pos begin_pos end